summaryrefslogtreecommitdiff
path: root/pr/tests/nonblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/tests/nonblock.c')
-rw-r--r--pr/tests/nonblock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pr/tests/nonblock.c b/pr/tests/nonblock.c
index c15807b7..9c44135e 100644
--- a/pr/tests/nonblock.c
+++ b/pr/tests/nonblock.c
@@ -74,6 +74,9 @@ clientThreadFunc(void *arg)
PRStatus retVal;
PRInt32 nBytes;
+ /* Initialize the buffer so that Purify won't complain */
+ memset(buf, 0, sizeof(buf));
+
addr.inet.family = PR_AF_INET;
addr.inet.port = PR_htons((PRUint16)port);
addr.inet.ip = PR_htonl(PR_INADDR_LOOPBACK);