2007-09-20 Dan Williams <dcbw@redhat.com>

* libnm-util/nm-setting.c
		- (convert_strv_to_slist): dupe the values in the list because since
			the list is a boxed value, it'll get destroyed when it's container
			(like a hash table or whatever) gets destroyed



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2835 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-09-21 01:25:11 +00:00
parent e8ec35bd1b
commit 300b9e48eb
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2007-09-20 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
- (convert_strv_to_slist): dupe the values in the list because since
the list is a boxed value, it'll get destroyed when it's container
(like a hash table or whatever) gets destroyed
2007-09-20 Tambet Ingo <tambet@gmail.com>
* libnm-util/nm-setting.h: Change the type of NMSettingVPN->routes to

View file

@ -240,7 +240,7 @@ convert_strv_to_slist (char **str)
guint i = 0;
while (str[i])
list = g_slist_prepend (list, str[i++]);
list = g_slist_prepend (list, g_strdup (str[i++]));
return g_slist_reverse (list);
}