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:
parent
e2ac996183
commit
b0184f2869
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue