mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bustage fix following bug 541594 - revert NS_strtok change that appears to be causing hangs and fix ini parser to work as intended. rs=dolske
This commit is contained in:
parent
acd1bf506a
commit
7546a30a33
@ -91,7 +91,7 @@ NS_strtok(const char *delims, char **str)
|
||||
} while (*i);
|
||||
|
||||
*str = NULL;
|
||||
return NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
PRUint32
|
||||
|
@ -197,7 +197,7 @@ nsINIParser::InitFromFILE(FILE *fd)
|
||||
|
||||
char *key = token;
|
||||
char *e = NS_strtok(kEquals, &token);
|
||||
if (!e)
|
||||
if (!e || !token)
|
||||
continue;
|
||||
|
||||
INIValue *v;
|
||||
|
Loading…
Reference in New Issue
Block a user