summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-08-27 12:15:49 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-08-27 12:15:49 +0000
commit1f21f963e7098f1dc2e776ccc3886fdf12af9543 (patch)
tree86ae2ea8af40a32548cd1651012fb441447feb0c /list.c
parent5ffb1376dd0a2f1f55cfc0511bd3ef38be6e4d1d (diff)
minor fix in list.c
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@359 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'list.c')
-rw-r--r--list.c2
1 files changed, 1 insertions, 1 deletions
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;