From: Antony Dovgal Date: Mon, 29 May 2006 10:39:59 +0000 (+0000) Subject: initialize srcstream X-Git-Tag: php-5.2.0RC1~442 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be0b8c71bcc25ef6641779b5382c7786e12d9eba;p=php initialize srcstream --- diff --git a/ext/standard/file.c b/ext/standard/file.c index e97797deb7..38670e8dc5 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -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) {