aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__);
}