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
This commit is contained in:
parent
7b1e14b8e8
commit
f8e78bf995
@ -100,11 +100,10 @@ void flushWarningLog(void)
|
|||||||
if (warningBuffer != NULL)
|
if (warningBuffer != NULL)
|
||||||
{
|
{
|
||||||
while (s != NULL) {
|
while (s != NULL) {
|
||||||
char * next = strchr(s, '\n');
|
char *next = strchr(s, '\n');
|
||||||
if (next != NULL) {
|
if (next == NULL) break;
|
||||||
*next = '\0';
|
*next = '\0';
|
||||||
next++;
|
next++;
|
||||||
}
|
|
||||||
fprintf(stderr, "%s\n", s);
|
fprintf(stderr, "%s\n", s);
|
||||||
s = next;
|
s = next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user