void-packages/srcpkgs/mozjs24/patches/char_ptr_nul.patch
Enno Boland 737e1983c9
Revert "mozjs24: remove package, not used anymore"
This reverts commit b29b1dc8c0.

Used for polkit.
2018-03-19 21:14:43 +01:00

11 lines
419 B
Diff

--- js/src/shell/jsoptparse.cpp 2013-10-29 21:40:20.000000000 +0100
+++ js/src/shell/jsoptparse.cpp 2017-06-14 13:00:24.076799935 +0200
@@ -253,7 +253,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;
}