]> granicus.if.org Git - php/commitdiff
Bugfix#38649 Optional param not initialized
authorSara Golemon <pollita@php.net>
Wed, 11 Oct 2006 23:20:54 +0000 (23:20 +0000)
committerSara Golemon <pollita@php.net>
Wed, 11 Oct 2006 23:20:54 +0000 (23:20 +0000)
ext/standard/streamsfuncs.c

index f6ef5ad2f675fdc6efa90432e2449c62a245f405..03d4d5b353181799d099476b687eab5f563cc360 100644 (file)
@@ -317,7 +317,7 @@ PHP_FUNCTION(stream_socket_sendto)
        php_stream *stream;
        zval *zstream;
        long flags = 0;
-       char *data, *target_addr;
+       char *data, *target_addr = NULL;
        int datalen, target_addr_len = 0;
        php_sockaddr_storage sa;
        socklen_t sl = 0;