pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey17 Pointer fix, found by GCC 7.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5eddab4fa1bc
branches:  trunk
changeset: 362748:5eddab4fa1bc
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed May 24 13:22:36 2017 +0000

description:
Pointer fix, found by GCC 7.1.

diffstat:

 lang/spidermonkey17/distinfo                                  |   3 +-
 lang/spidermonkey17/patches/patch-js_src_shell_jsoptparse.cpp |  15 +++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 14327ca64cb4 -r 5eddab4fa1bc lang/spidermonkey17/distinfo
--- a/lang/spidermonkey17/distinfo      Wed May 24 12:59:15 2017 +0000
+++ b/lang/spidermonkey17/distinfo      Wed May 24 13:22:36 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2016/12/15 23:57:33 joerg Exp $
+$NetBSD: distinfo,v 1.8 2017/05/24 13:22:36 jperkin Exp $
 
 SHA1 (mozjs17.0.0.tar.gz) = 7805174898c34e5d3c3b256117af9944ba825c89
 RMD160 (mozjs17.0.0.tar.gz) = 2fa3a891da2a7a09019f67c1555c03bcdc51e6c5
@@ -18,5 +18,6 @@
 SHA1 (patch-js_src_jsopcode.cpp) = 47d5c742b9d91af1d035f61fd38d491233c1ee87
 SHA1 (patch-js_src_methodjit_MethodJIT.cpp) = f2b12fa554ec319b5848b1cc13ec17ef967b08d7
 SHA1 (patch-js_src_methodjit_TrampolineMIPS.cpp) = d162f8e9a903bd55cf7c92c345a169a8ec050d10
+SHA1 (patch-js_src_shell_jsoptparse.cpp) = d4a8d85c5da316c00409601403fad88dac7882df
 SHA1 (patch-mfbt_double-conversion_utils.h) = d4f2a7c1eb7aa72a147c7f1f4147dfb5fe38ac92
 SHA1 (patch-ml) = fdb4452a613f7ca185cd6b936538bec9ef97c4c1
diff -r 14327ca64cb4 -r 5eddab4fa1bc lang/spidermonkey17/patches/patch-js_src_shell_jsoptparse.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey17/patches/patch-js_src_shell_jsoptparse.cpp     Wed May 24 13:22:36 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_shell_jsoptparse.cpp,v 1.1 2017/05/24 13:22:36 jperkin Exp $
+
+Pointer fix.
+
+--- js/src/shell/jsoptparse.cpp.orig   2013-02-11 22:33:23.000000000 +0000
++++ js/src/shell/jsoptparse.cpp
+@@ -243,7 +243,7 @@ OptionParser::extractValue(size_t argc,
+     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;
+     }



Home | Main Index | Thread Index | Old Index