utils: Initialize list head after freeing translation list

Problem found and fix proposed by Andrew Kraslavsky <andykras@hotmail.com>
This commit is contained in:
Thomas Graf 2011-10-10 12:02:33 +02:00
parent 790966d69a
commit 30d3f8c199

View file

@ -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,