die() consistency: always add newline
This commit is contained in:
parent
56a31dc4a7
commit
ab9571bbc5
3 changed files with 10 additions and 8 deletions
2
util.c
2
util.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue