Fixed Mac warning

git-svn-id: svn://10.0.0.236/trunk@13400 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waldemar%netscape.com
1998-10-23 20:44:28 +00:00
parent 9f3aa1200d
commit ad992aff3d

View File

@@ -1289,7 +1289,7 @@ my_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
}
/* embedded newlines -- argh! */
while ((tmp = strchr(message, '\n'))) {
while ((tmp = strchr(message, '\n')) != 0) {
tmp++;
if (prefix) fputs(prefix, stderr);
fwrite(message, 1, tmp - message, stderr);