mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-22 15:13:17 +00:00
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
@ -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 New Issue
Block a user