diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/basic_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 = '-'; |