diff options
author | Thomas Haller <thaller@redhat.com> | 2014-08-26 15:31:06 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-12 20:13:17 +0200 |
commit | b145700656a244c0550178132edb069e14f9413f (patch) | |
tree | 5681b17af8da6f53f7b60912a0edd9a6f84ab83d /libnm-core | |
parent | 884040fa8f7ef6c9f1f46ae0d96a751c4bc6f9ad (diff) | |
download | NetworkManager-b145700656a244c0550178132edb069e14f9413f.tar.gz |
libnm: make @copy_func argument in _nm_utils_copy_strdict() optional
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-core')
-rw-r--r-- | libnm-core/nm-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index f1e592f535..913ba4b4df 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -552,7 +552,7 @@ _nm_utils_copy_slist_to_array (const GSList *list, array = g_ptr_array_new_with_free_func (unref_func); for (iter = list; iter; iter = iter->next) - g_ptr_array_add (array, copy_func (iter->data)); + g_ptr_array_add (array, copy_func ? copy_func (iter->data) : iter->data); return array; } |