diff options
author | Thomas Graf <tgraf@redhat.com> | 2011-10-10 12:02:33 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2011-10-10 12:02:33 +0200 |
commit | 30d3f8c199d38d830ff340e521b862d8fe4395b6 (patch) | |
tree | 6fd947dd64bd9c36e6c95918a75b73e60080c695 | |
parent | 790966d69aea9aea304caed22486834ba55eb5c7 (diff) | |
download | libnl-30d3f8c199d38d830ff340e521b862d8fe4395b6.tar.gz |
utils: Initialize list head after freeing translation list
Problem found and fix proposed by Andrew Kraslavsky <andykras@hotmail.com>
-rw-r--r-- | lib/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c index 37ad4cc..0ec7626 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -885,6 +885,8 @@ void __trans_list_clear(struct nl_list_head *head) free(tl->a); free(tl); } + + nl_init_list_head(head); } char *__type2str(int type, char *buf, size_t len, |