Commit f8e78bf9 authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent 7b1e14b8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment