--- 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);