]> granicus.if.org Git - php/commitdiff
Initialize "retval" on each request
authorDmitry Stogov <dmitry@php.net>
Mon, 19 Feb 2007 14:13:02 +0000 (14:13 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 19 Feb 2007 14:13:02 +0000 (14:13 +0000)
sapi/cgi/cgi_main.c

index 68ac6807fc950de56f264c401247d2f82a9af7c2..830dee4ccf7507be4e360f290f0be0bbe0d038ef 100644 (file)
@@ -1694,6 +1694,7 @@ consult the installation file that came with this distribution, or visit \n\
                        1. we are running from shell and got filename was there
                        2. we are running as cgi or fastcgi
                */
+               retval = FAILURE;
                if (cgi || SG(request_info).path_translated) {
                        retval = php_fopen_primary_script(&file_handle TSRMLS_CC);
                }