index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | slavomir vlcek <svlc@inventati.org> | 2013-10-10 17:25:22 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-14 13:01:15 +1000 |
commit | e5f23e0ebb14be22623c38130e6c2b3c37954a2b (patch) | |
tree | 045ad9fae436f8290e78c2554c41407a24371ff3 /lib/libalpm | |
parent | d79872b4c71f93b225d7bc0987e33cebfe687e42 (diff) |
-rw-r--r-- | lib/libalpm/alpm_list.c | 10 |
diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 59f99f9b..a3c73aa0 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -70,11 +70,13 @@ void SYMEXPORT alpm_list_free_inner(alpm_list_t *list, alpm_list_fn_free fn) { alpm_list_t *it = list; - while(it) { - if(fn && it->data) { - fn(it->data); + if(fn) { + while(it) { + if(it->data) { + fn(it->data); + } + it = it->next; } - it = it->next; } } |