mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
cppcheck: call va_end in _internal_error
fix for: util/error_util.c:38: error: va_list 'va_args' was opened but not closed by va_end() This makes the code more copy-pastable, if nothing else
This commit is contained in:
parent
c960bb4686
commit
10071f8b50
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ _internal_error (const char *format, ...)
|
||||||
fprintf (stderr, "Internal error: ");
|
fprintf (stderr, "Internal error: ");
|
||||||
vfprintf (stderr, format, va_args);
|
vfprintf (stderr, format, va_args);
|
||||||
|
|
||||||
|
va_end (va_args);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue