From: Marcus Boerger Date: Sat, 2 Nov 2002 10:34:51 +0000 (+0000) Subject: fix a warning X-Git-Tag: php-4.3.0RC1~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ea6e4431ee9dade8293510bb0b7479d3c47993a;p=php fix a warning --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 0e5a88fa11..00adfc2a10 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1519,6 +1519,9 @@ PHP_FUNCTION(getopt) if(o == 0) { #ifdef HARTMUT_0 optname = (char *)longopts[longindex].name; +#else + /* o == 0 shall never happen so this only fixes a compiler warning */ + optname = NULL; #endif } else { if(o == 1) o = '-';