From: Antony Dovgal Date: Mon, 20 Mar 2006 13:54:16 +0000 (+0000) Subject: MFH: initialize retval X-Git-Tag: php-5.1.3RC2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afd781a09a9ef4e4dd09495de569f11007c84057;p=php MFH: initialize retval --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index c3fd193dc7..56d39169b2 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1368,7 +1368,7 @@ static int spl_filesystem_file_read(spl_filesystem_object *intern, int silent TS static int spl_filesystem_file_read_line(zval * this_ptr, spl_filesystem_object *intern, int silent TSRMLS_DC) /* {{{ */ { - zval *retval; + zval *retval = NULL; /* if overloaded call the function, otherwise do it directly */ if (intern->u.file.func_getCurr->common.scope != spl_ce_SplFileObject) {