aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-30 14:14:52 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-30 14:14:52 +0100
commit2748fb7ecb483690c1c2d5f41b387fd3f2e05df8 (patch)
tree9cd1a4e5332b86b711b6a019ec045a2dfdd79e67
parent2ed553ef4cfe020a4c38a41d443d1d507a710529 (diff)
Remove NULL check
-rw-r--r--cbs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cbs.h b/cbs.h
index 088cb55..c5bb7ee 100644
--- a/cbs.h
+++ b/cbs.h
@@ -314,8 +314,7 @@ diex(const char *fmt, ...)
va_start(ap, fmt);
flockfile(stderr);
fprintf(stderr, "%s: ", *_cbs_argv);
- if (fmt)
- vfprintf(stderr, fmt, ap);
+ vfprintf(stderr, fmt, ap);
fputc('\n', stderr);
exit(EXIT_FAILURE);
}