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:
Mark Banner 2010-02-10 11:55:18 +00:00
parent 3dc4765ccc
commit 4e935520e6
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ NS_strtok(const char *delims, char **str)
} while (*i);
*str = NULL;
return NULL;
return ret;
}
PRUint32

View File

@ -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;