From f8e78bf995ee08f890adae0c4f2dde6c1ccf0cfc Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sun, 18 Feb 2007 01:00:54 +0000 Subject: Re-adding a fix to log.c that got pulled with the localization reversion. git-svn-id: https://svn.musicpd.org/mpd/trunk@5374 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/log.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/log.c b/src/log.c index 5185bb9c3..77eadaa4e 100644 --- a/src/log.c +++ b/src/log.c @@ -100,11 +100,10 @@ void flushWarningLog(void) if (warningBuffer != NULL) { while (s != NULL) { - char * next = strchr(s, '\n'); - if (next != NULL) { - *next = '\0'; - next++; - } + char *next = strchr(s, '\n'); + if (next == NULL) break; + *next = '\0'; + next++; fprintf(stderr, "%s\n", s); s = next; } -- cgit v1.2.3