mozjs17: fix gcc7 build

This commit is contained in:
Jürgen Buchmüller 2017-05-09 16:09:15 +02:00
parent b340c93253
commit a0ba65cf26
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- js/src/shell/jsoptparse.cpp 2013-02-11 23:33:23.000000000 +0100
+++ js/src/shell/jsoptparse.cpp 2017-05-09 16:05:19.657666914 +0200
@@ -243,7 +243,7 @@
char *eq = strchr(argv[*i], '=');
if (eq) {
*value = eq + 1;
- if (value[0] == '\0')
+ if (*value[0] == '\0')
return error("A value is required for option %.*s", eq - argv[*i], argv[*i]);
return Okay;
}