2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-30 13:58:08 +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:
Romain Vimont
2019-08-04 16:21:50 +02:00
parent e2ac996183
commit b0184f2869

View File

@@ -13,7 +13,7 @@
} }
#define queue_init(PQ) \ #define queue_init(PQ) \
(void) ((PQ)->first = NULL) (void) ((PQ)->first = (PQ)->last = NULL)
#define queue_is_empty(PQ) \ #define queue_is_empty(PQ) \
!(PQ)->first !(PQ)->first