aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/log.c b/src/log.c
index d38de4f25..242caf31f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -109,11 +109,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;
}