Fix warning in str_split.

This commit is contained in:
brendan%mozilla.org 2006-06-21 16:54:40 +00:00
parent 21e8cfc612
commit 9041c05ece

View File

@ -1835,6 +1835,7 @@ str_split(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
/* Set a magic value so we can detect a successful re match. */
sep->chars = NULL;
sep->length = 0;
} else {
JSString *str2 = js_ValueToString(cx, argv[0]);
if (!str2)