diff options
Diffstat (limited to 'src/log.c')
-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; } |