mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Fix warning in str_split.
This commit is contained in:
parent
21e8cfc612
commit
9041c05ece
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user