From 6515ce3d742c1273484a52833b157477575fdd99 Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 30 May 2008 14:17:52 +0000 Subject: gconfig cbs now return int. almost finished receiving all dynamic server config, just need to handle failing stringcopy git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@267 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'list.c') diff --git a/list.c b/list.c index 6aacfbd..2b8f34a 100644 --- a/list.c +++ b/list.c @@ -13,6 +13,9 @@ struct list *list_create() { /* frees all memory associated with the list */ void list_destroy(struct list *list) { struct list_node *node, *next; + + if (!list) + return; for (node = list->first; node; node = next) { free(node->data); -- cgit v1.1