scan-build: fix a couple of minor warnings from a scan-build run

This commit is contained in:
Daniel Eklöf 2019-11-05 10:39:36 +01:00
parent 9abc5ca971
commit 15b12f45c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 7 additions and 5 deletions

2
log.c
View file

@ -100,7 +100,7 @@ _sys_log(enum log_class log_class, const char *module,
idx += vsnprintf(&msg[idx], required_len + 1 - idx, fmt, va);
if (sys_errno != 0) {
idx += snprintf(
snprintf(
&msg[idx], required_len + 1 - idx, ": %s", strerror(sys_errno));
}