diff options
author | venaas <venaas> | 2008-05-30 14:17:52 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-05-30 14:17:52 +0000 |
commit | 6515ce3d742c1273484a52833b157477575fdd99 (patch) | |
tree | 7a26e2a3190a25fd58b120b01177f844b09ba322 /list.c | |
parent | c62df2e2a4797482cb2247400d6ae4830df25a3d (diff) |
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
Diffstat (limited to 'list.c')
-rw-r--r-- | list.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |