die() consistency: always add newline

This commit is contained in:
Hiltjo Posthuma
2016-08-12 14:39:30 +02:00
parent d14670b995
commit 026827fd65
3 changed files with 9 additions and 7 deletions

2
util.c
View File

@ -27,6 +27,8 @@ die(const char *fmt, ...) {
if (fmt[0] && fmt[strlen(fmt)-1] == ':') {
fputc(' ', stderr);
perror(NULL);
} else {
fputc('\n', stderr);
}
exit(1);