Skip to content

Commit

Permalink
include: queue.h: Make flink clear after sq_rem
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
LingaoM authored and W-M-R committed Oct 16, 2024
1 parent 366ede9 commit 751978e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/nuttx/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
{ \
(q)->tail = NULL; \
} \
else \
{ \
tmp_node->flink = NULL; \
} \
} \
else \
{ \
Expand Down

0 comments on commit 751978e

Please sign in to comment.