]> granicus.if.org Git - php/commitdiff
initialize srcstream
authorAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 10:39:59 +0000 (10:39 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 10:39:59 +0000 (10:39 +0000)
ext/standard/file.c

index e97797deb79e6aa6c6642eaf281fc5d730fbbee1..38670e8dc5200b14d3af7af37b3ed7322c446a69 100644 (file)
@@ -571,7 +571,7 @@ PHP_FUNCTION(file_put_contents)
        long flags = 0;
        zval *zcontext = NULL;
        php_stream_context *context = NULL;
-       php_stream *srcstream;
+       php_stream *srcstream = NULL;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|lr!", &filename, &filename_len, 
                                &data, &flags, &zcontext) == FAILURE) {