]> granicus.if.org Git - php/commitdiff
fix a warning
authorMarcus Boerger <helly@php.net>
Sat, 2 Nov 2002 10:34:51 +0000 (10:34 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 2 Nov 2002 10:34:51 +0000 (10:34 +0000)
ext/standard/basic_functions.c

index 0e5a88fa11ec11c198a031679ea364e3de4bdf93..00adfc2a10bd1a992308a466ff90caa7e88d6263 100644 (file)
@@ -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 = '-';