diff options
author | Wez Furlong <wez@php.net> | 2004-07-31 10:49:09 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-07-31 10:49:09 +0000 |
commit | 05a3fabacb1e622d24addbac5013472c8ee140c2 (patch) | |
tree | b0c442bbef5e1937220fa7febfd382ac1f95f73d /main/streams/xp_socket.c | |
parent | 71078de71ae2ee1da099b6efb9c88952651f0390 (diff) | |
download | php-git-05a3fabacb1e622d24addbac5013472c8ee140c2.tar.gz |
Make sure this is initialized...
Diffstat (limited to 'main/streams/xp_socket.c')
-rw-r--r-- | main/streams/xp_socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |