summaryrefslogtreecommitdiff
path: root/src/slist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slist.c')
-rw-r--r--src/slist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slist.c b/src/slist.c
index 58528bd..8dd1963 100644
--- a/src/slist.c
+++ b/src/slist.c
@@ -76,7 +76,7 @@ slist_element_t* slist_add(slist_t* lst, void* data)
void slist_remove(slist_t* lst, void* data)
{
- if(!lst || !lst->first_)
+ if(!lst || !lst->first_ || !data)
return;
slist_element_t* tmp = lst->first_->next_;