summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2006-02-02 18:16:43 +0000
committerSara Golemon <pollita@php.net>2006-02-02 18:16:43 +0000
commit3a4a0e3cef107df18c127cde514391c7a3986810 (patch)
tree53c8ea2192d58232eae033e9d30a39070d950c25
parent0c972edce473566e72ffb82867121b9cfaae4543 (diff)
downloadphp-git-3a4a0e3cef107df18c127cde514391c7a3986810.tar.gz
MFH: Prevent bindport from being used uninitialized
-rw-r--r--main/streams/xp_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c
index 3b1263d519..fe6fa16b9f 100644
--- a/main/streams/xp_socket.c
+++ b/main/streams/xp_socket.c
@@ -578,7 +578,7 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
php_stream_xport_param *xparam TSRMLS_DC)
{
char *host = NULL, *bindto = NULL;
- int portno, bindport;
+ int portno, bindport = 0;
int err;
int ret;
zval **tmpzval = NULL;