From: Alan T. DeKok Date: Mon, 31 Oct 2016 16:39:42 +0000 (-0400) Subject: int is signed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46bcaa4e6454f3368c5a948ae766ac9300163bd;p=thirdparty%2Ffreeradius-server.git int is signed --- diff --git a/src/util/atomic_queue.c b/src/util/atomic_queue.c index 88b9ae899ab..07f3395f152 100644 --- a/src/util/atomic_queue.c +++ b/src/util/atomic_queue.c @@ -73,7 +73,7 @@ fr_atomic_queue_t *fr_atomic_queue_create(TALLOC_CTX *ctx, int size) int64_t seq; fr_atomic_queue_t *aq; - if (!size) return NULL; + if (size <= 0) return NULL; /* * Allocate a contiguous blob for the header and queue.