fixes logging messages starting with '- ' when no additional information is selected

Tue, 29 May 2018 10:02:55 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 29 May 2018 10:02:55 +0200
changeset 324
343bff4cc0b5
parent 323
b8c49e7a1dba
child 325
a3e63cb21e20

fixes logging messages starting with '- ' when no additional information is selected

src/logging.c file | annotate | diff | comparison | revisions
     1.1 --- a/src/logging.c	Thu May 17 11:13:02 2018 +0200
     1.2 +++ b/src/logging.c	Tue May 29 10:02:55 2018 +0200
     1.3 @@ -97,7 +97,9 @@
     1.4              k += sprintf(msg+k, ":%u ", line);
     1.5          }
     1.6          
     1.7 -        msg[k++] = '-'; msg[k++] = ' ';
     1.8 +        if (k > 0) {
     1.9 +            msg[k++] = '-'; msg[k++] = ' ';
    1.10 +        }
    1.11          
    1.12          va_list args;
    1.13          va_start (args, format);

mercurial