freebsd-ports/lang/spidermonkey/files/patch-jsstr.c
OKAZAKI Tetsurou a4c5e709a7 Updates the port to Javascript 1.7.
Much thanks to Bernhard Fröhlich for doing the heavy lifting.

PR:		125191
Submitted by:	maintainer
2008-07-08 18:03:31 +00:00

11 lines
289 B
C

--- jsstr.c 2006-11-22 09:28:44.000000000 +0100
+++ jsstr.c 2008-06-19 16:14:49.000000000 +0200
@@ -1815,6 +1815,8 @@
jsint i, j;
uint32 len, limit;
+ bzero(&tmp,sizeof(tmp));
+
str = js_ValueToString(cx, OBJECT_TO_JSVAL(obj));
if (!str)
return JS_FALSE;