]> granicus.if.org Git - php/commitdiff
initialize err
authorSascha Schumann <sas@php.net>
Tue, 20 May 2003 12:45:35 +0000 (12:45 +0000)
committerSascha Schumann <sas@php.net>
Tue, 20 May 2003 12:45:35 +0000 (12:45 +0000)
main/network.c

index 3c84f64ecfed405018013cac5ae0c5c346264bbf..97c63604d1ad1560d2c8a0252e66b5ddd9b56799 100644 (file)
@@ -410,7 +410,7 @@ int php_hostconnect(const char *host, unsigned short port, int socktype, struct
        struct sockaddr **sal, **psal;
        struct timeval individual_timeout;
        int set_timeout = 0;
-       int err;
+       int err = 0;
        
        n = php_network_getaddresses(host, &sal TSRMLS_CC);