Initialize queue "last" field

The compiler is not always able to see that "last" is always initialized
before being used, so always initialize it.
This commit is contained in:
Romain Vimont 2019-08-04 16:21:50 +02:00
parent e2ac996183
commit b0184f2869

View file

@ -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