aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-18 15:43:19 +0000
committerRoy Marples <roy@marples.name>2007-09-18 15:43:19 +0000
commit81c009e47d3a0779cee32e2a90e5a479bbaa790e (patch)
tree93aa10317db2ef70e8773e2168c5f1006c18d26e /src/rc.h
parent9587d71df3c50b26e8e09a74c6d884a965dafafa (diff)
Don't be an ass - don't free the 2nd list. Instead just empty it.
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc.h b/src/rc.h
index b43d2d29..5e5e100a 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -203,8 +203,8 @@ char *rc_strlist_addsort (char ***list, const char *item);
char *rc_strlist_addsortc (char ***list, const char *item);
char *rc_strlist_addsortu (char ***list, const char *item);
int rc_strlist_delete (char ***list, const char *item);
-/* rc_strlist_list_join does a shallow copy of list2 onto list1
- * and then frees the pointer for list2 (but not the contents) */
+/* join moves items from list2 to list1, so list2 is empty
+ * on return. It still needs to be freed though. */
int rc_strlist_join (char ***list1, char **list2);
void rc_strlist_reverse (char **list);
void rc_strlist_free (char **list);