Initialize queue "last" field

The compiler is not always able to see that "last" is always initialized
before being used, so always initialize it.
master
Romain Vimont 6 years ago
parent e2ac996183
commit b0184f2869

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

Loading…
Cancel
Save