aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-28 20:07:42 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-28 20:07:42 +0100
commiteb8993d1c1150cd6523bc414edef4b8d54b9f844 (patch)
treeb296fbf30b533b57fe7f5a105cff57b547059527
parentc1b7d6df1e176c20917aa5678a4ddda1228b3f54 (diff)
Fix codestyle
-rw-r--r--cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 22b5e70..28c1d1e 100644
--- a/cbs.h
+++ b/cbs.h
@@ -175,7 +175,7 @@ enum pkg_config_flags {
void *
bufalloc(void *p, size_t n, size_t m)
{
- if (n != 0 && SIZE_MAX / n < m) {
+ if (n && SIZE_MAX / n < m) {
errno = EOVERFLOW;
die(__func__);
}