Skip to content
Snippets Groups Projects
Commit ad1622c2 authored by rswindell's avatar rswindell
Browse files

Restore the previous behavior of File.iniGetObject(null), even though not

documented (it says if the section is *undefined*, the root section is read)
parent 394eba2a
No related branches found
No related tags found
No related merge requests found
...@@ -1209,7 +1209,7 @@ js_iniGetObject(JSContext *cx, uintN argc, jsval *arglist) ...@@ -1209,7 +1209,7 @@ js_iniGetObject(JSContext *cx, uintN argc, jsval *arglist)
return(JS_TRUE); return(JS_TRUE);
uintN argn = 0; uintN argn = 0;
if(argc > argn && !JSVAL_IS_BOOLEAN(argv[argn])) { if(argc > argn && !JSVAL_IS_BOOLEAN(argv[argn]) && !JSVAL_NULL_OR_VOID(argv[argn])) {
JSVALUE_TO_MSTRING(cx, argv[argn], section, NULL); JSVALUE_TO_MSTRING(cx, argv[argn], section, NULL);
HANDLE_PENDING(cx, section); HANDLE_PENDING(cx, section);
argn++; argn++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment