]> granicus.if.org Git - php/commitdiff
MFH: initialize retval
authorAntony Dovgal <tony2001@php.net>
Mon, 20 Mar 2006 13:54:16 +0000 (13:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 20 Mar 2006 13:54:16 +0000 (13:54 +0000)
ext/spl/spl_directory.c

index c3fd193dc73b89f7962018dd76cc92f2e2cab986..56d39169b2cbeb6697bf6a9a8868900491ac5d8a 100755 (executable)
@@ -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) {