projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python plugin: Check return value of malloc().
[collectd.git]
/
src
/
utils_llist.c
diff --git
a/src/utils_llist.c
b/src/utils_llist.c
index
6a0c6f0
..
11f838d
100644
(file)
--- a/
src/utils_llist.c
+++ b/
src/utils_llist.c
@@
-120,6
+120,9
@@
void llist_remove (llist_t *l, llentry_t *e)
{
llentry_t *prev;
+ if ((l == NULL) || (e == NULL))
+ return;
+
prev = l->head;
while ((prev != NULL) && (prev->next != e))
prev = prev->next;