projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Restore signal handler after uloop_run()
[project/libubox.git]
/
safe_list.c
diff --git
a/safe_list.c
b/safe_list.c
index
d9f211f
..
f26b4dd
100644
(file)
--- a/
safe_list.c
+++ b/
safe_list.c
@@
-108,7
+108,8
@@
void safe_list_del(struct safe_list *list)
next->i = list->i;
list->i->head = &next->i;
*tail = next_i;
- next_i->head = tail;
+ if (next_i)
+ next_i->head = tail;
list->i = NULL;
}