]> granicus.if.org Git - php/commitdiff
Fixed uninitialized used
authorXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 13:04:43 +0000 (21:04 +0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 13:04:43 +0000 (21:04 +0800)
main/streams/transports.c

index 7ede9407e60a100fc5e6744c3d11c258f3cb21e4..4f4832df2daf08182ba2382cda67ab5507117e25 100644 (file)
@@ -58,7 +58,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, in
                STREAMS_DC TSRMLS_DC)
 {
        php_stream *stream = NULL;
-       php_stream_transport_factory factory;
+       php_stream_transport_factory factory = NULL;
        const char *p, *protocol = NULL;
        int n = 0, failed = 0;
        char *error_text = NULL;