Fixed Mac warning
git-svn-id: svn://10.0.0.236/trunk@13400 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user