mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-23 00:20:43 +01:00
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:
parent
e8ec35bd1b
commit
300b9e48eb
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue