die() consistency: always add newline

This commit is contained in:
Hiltjo Posthuma
2016-08-12 14:35:25 +02:00
parent 56a31dc4a7
commit ab9571bbc5
3 changed files with 10 additions and 8 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);