From 697d1f5981015f36bcce51d21f5294dbbf624042 Mon Sep 17 00:00:00 2001 From: "waldemar%netscape.com" Date: Fri, 23 Oct 1998 20:44:28 +0000 Subject: [PATCH] Fixed Mac warning --- js/src/js.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/js.c b/js/src/js.c index 0f419e0e14c..b50a59f0ab7 100644 --- a/js/src/js.c +++ b/js/src/js.c @@ -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);