From 1f21f963e7098f1dc2e776ccc3886fdf12af9543 Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 27 Aug 2008 12:15:49 +0000 Subject: minor fix in list.c git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@359 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list.c b/list.c index ae102fc..269ce09 100644 --- a/list.c +++ b/list.c @@ -58,7 +58,7 @@ void *list_shift(struct list *list) { struct list_node *node; void *data; - if (!list->first) + if (!list || !list->first) return NULL; node = list->first; -- cgit v1.1