diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:36:09 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:36:09 -0500 |
commit | 0d0a9af02064a92912e462659fa6bd1f80c4a29a (patch) | |
tree | 77cbe26903da02c2991a69a38b8aa05cf470820d | |
parent | 207012ae1d9878a207b9875178a56d98798a8ba7 (diff) | |
download | slapi-nis-0d0a9af02064a92912e462659fa6bd1f80c4a29a.tar.gz slapi-nis-0d0a9af02064a92912e462659fa6bd1f80c4a29a.tar.xz slapi-nis-0d0a9af02064a92912e462659fa6bd1f80c4a29a.zip |
- don't leave the tv_usec field uninitialized (defect #10121)
-rw-r--r-- | tests/clients/yp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 = |