aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-04 11:59:05 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-04 11:59:05 +0000
commitcc34db3c759080601fa71f997c24bcd2a18c4a6b (patch)
tree361514d93db150ffa9285269683dfc87abfbef3b
parent9f82bdcd4e5cf571380fe81bf1e8f7cac18188c8 (diff)
downloadports-cc34db3c759080601fa71f997c24bcd2a18c4a6b.tar.gz
ports-cc34db3c759080601fa71f997c24bcd2a18c4a6b.zip
- Fix build with gcc 4.2
PR: 113094 Submitted by: Anish Mistry <amistry@am-productions.biz> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=192699
-rw-r--r--lang/spidermonkey/files/patch-jsstr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/spidermonkey/files/patch-jsstr.c b/lang/spidermonkey/files/patch-jsstr.c
new file mode 100644
index 000000000000..73786acdf88d
--- /dev/null
+++ b/lang/spidermonkey/files/patch-jsstr.c
@@ -0,0 +1,19 @@
+
+
+--- patch-jsstr.c begins here ---
+--- jsstr.c.orig Mon Dec 22 01:13:07 2003
++++ jsstr.c Mon May 28 10:46:21 2007
+@@ -1830,6 +1830,8 @@
+ jsdouble d;
+ jsint i, j;
+ uint32 len, limit;
++
++ bzero(&tmp,sizeof(tmp));
+
+ str = js_ValueToString(cx, OBJECT_TO_JSVAL(obj));
+ if (!str)
+
+--- patch-jsstr.c ends here ---
+
+
+