src/logging.c

changeset 324
343bff4cc0b5
parent 295
7fc65395188e
child 328
2bf1da3c411e
--- a/src/logging.c	Thu May 17 11:13:02 2018 +0200
+++ b/src/logging.c	Tue May 29 10:02:55 2018 +0200
@@ -97,7 +97,9 @@
             k += sprintf(msg+k, ":%u ", line);
         }
         
-        msg[k++] = '-'; msg[k++] = ' ';
+        if (k > 0) {
+            msg[k++] = '-'; msg[k++] = ' ';
+        }
         
         va_list args;
         va_start (args, format);

mercurial