From 24035faa29e72ef2355bed2c6a36fc3a95fc059b Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 6 Nov 2000 09:31:48 +0000 Subject: [PATCH] I guess SG(request_info).argv0 and not !SG(request_info).argv0 was an intent, otherwise it doesn't make much sense. --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index bccf818715..01ca27fdbe 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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; } -- 2.50.1