diff options
Diffstat (limited to 'js/src/shell/jsoptparse.cpp')
-rw-r--r-- | js/src/shell/jsoptparse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/shell/jsoptparse.cpp b/js/src/shell/jsoptparse.cpp index b49d0a5..612aa00 100644 --- a/js/src/shell/jsoptparse.cpp +++ b/js/src/shell/jsoptparse.cpp @@ -243,7 +243,7 @@ OptionParser::extractValue(size_t argc, char **argv, size_t *i, char **value) char *eq = strchr(argv[*i], '='); if (eq) { *value = eq + 1; - if (value[0] == '\0') + if (value[0][0] == '\0') return error("A value is required for option %.*s", eq - argv[*i], argv[*i]); return Okay; } |