src/utils_llist.c: Improved robustness against NULL pointers.
authorSebastian Harl <sh@tokkee.org>
Thu, 22 May 2008 11:36:00 +0000 (13:36 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 27 May 2008 11:12:28 +0000 (13:12 +0200)
commit36f72a66a6b5ad14d7ea67e739fc93633b55d6d3
treefbe792e95ad7f7b4ea3c029a9a63217c9347266f
parent3de0a25efcd83c2b870dfc779e94aa50a2498c0f
src/utils_llist.c: Improved robustness against NULL pointers.

All functions searching for some list entry now return NULL if the given
list equals NULL. Imho, that's the expected behavior. Also, it removes the
need to check the lists from the calling function while that function
usually checks the returned list entry anyway.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_llist.c