diff options
Diffstat (limited to 'android_popt.cc')
-rw-r--r-- | android_popt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android_popt.cc b/android_popt.cc index a1492c6..b5b7970 100644 --- a/android_popt.cc +++ b/android_popt.cc @@ -98,7 +98,7 @@ int poptGetNextOpt(poptContext con) { #ifdef LOCAL_DEBUG fprintf(stderr, "getopt_long()=%c\n", res); #endif - if (res == 0 || res == '?') { + if (res <= 0 || res == '?' || i == -1) { return -1; } |