mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
include: queue.h: Make flink clear after sq_rem
In the previous design, this member may be cleared or not cleared, which results in the API's side effects not being a clear property. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
@@ -188,6 +188,10 @@
|
|||||||
{ \
|
{ \
|
||||||
(q)->tail = NULL; \
|
(q)->tail = NULL; \
|
||||||
} \
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
tmp_node->flink = NULL; \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in New Issue
Block a user