]> granicus.if.org Git - php/commitdiff
I guess SG(request_info).argv0 and not !SG(request_info).argv0 was an intent, otherwi...
authorStanislav Malyshev <stas@php.net>
Mon, 6 Nov 2000 09:31:48 +0000 (09:31 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 6 Nov 2000 09:31:48 +0000 (09:31 +0000)
sapi/cgi/cgi_main.c

index bccf8187150cadd3682ad478d81a0fb18e201d06..01ca27fdbea854389f94b1f5c5c442b00633680d 100644 (file)
@@ -511,7 +511,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
        zend_llist_init(&global_vars, sizeof(char *), NULL, 0);
 
        if (!cgi) {                                     /* never execute the arguments if you are a CGI */
-               if (!SG(request_info).argv0) {
+               if (SG(request_info).argv0) {
                        free(SG(request_info).argv0);
                        SG(request_info).argv0 = NULL;
                }