]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
int is signed
authorAlan T. DeKok <aland@freeradius.org>
Mon, 31 Oct 2016 16:39:42 +0000 (12:39 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 31 Oct 2016 18:08:46 +0000 (14:08 -0400)
src/util/atomic_queue.c

index 88b9ae899abc05746f12a82b4738b78a43c2639e..07f3395f152b4948283c2ea02653d87d40c9a363 100644 (file)
@@ -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.