Don't be an ass - don't free the 2nd list. Instead just empty it.

This commit is contained in:
Roy Marples
2007-09-18 15:43:19 +00:00
parent 9587d71df3
commit 81c009e47d
7 changed files with 55 additions and 35 deletions

View File

@@ -12,8 +12,7 @@
rc_strlist_add and friends now take char *** instead of char ** and
return a pointer to the item added instead of the new list head. This is
so we can easily tell if the item was successfully added or not instead
of iterating through the list looking for it. rc_strlist_join now frees
list2 for ease of use.
of iterating through the list looking for it.
list = rc_strlist_add (list, item);
becomes