From: Wez Furlong Date: Sat, 31 Jul 2004 10:49:09 +0000 (+0000) Subject: Make sure this is initialized... X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05a3fabacb1e622d24addbac5013472c8ee140c2;p=php Make sure this is initialized... --- diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index d6fb72257e..bcfa33b025 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -233,11 +233,13 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void if (value == -1) { if (sock->timeout.tv_sec == -1) { tv.tv_sec = FG(default_socket_timeout); + tv.tv_usec = 0; } else { tv = sock->timeout; } } else { tv.tv_sec = value; + tv.tv_usec = 0; } if (sock->socket == -1) {