From: Antony Dovgal Date: Mon, 20 Mar 2006 13:53:56 +0000 (+0000) Subject: initialize retval X-Git-Tag: RELEASE_1_3~353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=882df6e4d487b06398658a25c29e99899cd87f1a;p=php initialize retval --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 94cbd1c4c0..3cd1e73538 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1435,7 +1435,7 @@ static void spl_filesystem_file_read_csv(zval * this_ptr, spl_filesystem_object static int spl_filesystem_file_read_line_ex(zval * this_ptr, spl_filesystem_object *intern, int silent TSRMLS_DC) /* {{{ */ { - zval *retval; + zval *retval = NULL; /* 1) use fgetcsv? 2) overloaded call the function, 3) do it directly */ if (intern->flags & SPL_FILE_OBJECT_READ_CSV || intern->u.file.func_getCurr->common.scope != spl_ce_SplFileObject) {