From 0d0a9af02064a92912e462659fa6bd1f80c4a29a Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 3 Jan 2011 14:36:09 -0500 Subject: - don't leave the tv_usec field uninitialized (defect #10121) --- tests/clients/yp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/clients/yp.c b/tests/clients/yp.c index ceb092a..dc5c4d5 100644 --- a/tests/clients/yp.c +++ b/tests/clients/yp.c @@ -1,5 +1,5 @@ /* - * Copyright 2008 Red Hat, Inc. + * Copyright 2008,2011 Red Hat, Inc. * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -382,6 +382,7 @@ main(int argc, char **argv) } server.sin_port = htons(port); memset(&timeout, 0, sizeof(timeout)); + memset(&tv, 0, sizeof(tv)); tv.tv_sec = timeout; sock = RPC_ANYSOCK; client = -- cgit