diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-18 01:00:54 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-18 01:00:54 +0000 |
commit | f8e78bf995ee08f890adae0c4f2dde6c1ccf0cfc (patch) | |
tree | 83e29a944b0689e50b55012811c34a21a31d2fce /src | |
parent | 7b1e14b8e81c2dc44def58f2781bcfcc3cc9e58b (diff) | |
download | mpd-f8e78bf995ee08f890adae0c4f2dde6c1ccf0cfc.tar.gz mpd-f8e78bf995ee08f890adae0c4f2dde6c1ccf0cfc.tar.xz mpd-f8e78bf995ee08f890adae0c4f2dde6c1ccf0cfc.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/log.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; } |