diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2008-05-22 17:59:06 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-05-22 17:59:06 -0700 |
commit | f59b7fff08348532b6181c13862e9d240b5b6fc7 (patch) | |
tree | 6b3d5a389cb1413cf85b35a3089f7119279f6c0a | |
parent | 7bb1fab3c564e937de4d6e81196984d87df8ddc6 (diff) |
Don't derefernce members of NULL structures
-rw-r--r-- | lib/initd-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/initd-list.c b/lib/initd-list.c index 4ddfd7a..f49530a 100644 --- a/lib/initd-list.c +++ b/lib/initd-list.c @@ -33,6 +33,9 @@ void initd_list_free(initd_list_t *ilp) { initd_t *cur, *nxt; + if (!ilp) + return; + /* free the members of the initd list */ for (cur = ilp->first; cur; cur = nxt) { nxt = cur->next; |