From b0184f2869d259ae83eebe981010e39485fe459f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 4 Aug 2019 16:21:50 +0200 Subject: [PATCH] Initialize queue "last" field The compiler is not always able to see that "last" is always initialized before being used, so always initialize it. --- app/src/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/queue.h b/app/src/queue.h index 294823da..229ddb87 100644 --- a/app/src/queue.h +++ b/app/src/queue.h @@ -13,7 +13,7 @@ } #define queue_init(PQ) \ - (void) ((PQ)->first = NULL) + (void) ((PQ)->first = (PQ)->last = NULL) #define queue_is_empty(PQ) \ !(PQ)->first