summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
Diffstat (limited to 'srd.c')
-rw-r--r--srd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/srd.c b/srd.c
index 5903c6d..eb29f61 100644
--- a/srd.c
+++ b/srd.c
@@ -396,7 +396,12 @@ err:
*/
SRD_API GSList *srd_searchpaths_get(void)
{
- return g_slist_copy_deep(searchpaths, (GCopyFunc)g_strdup, NULL);
+ GSList *paths = NULL;
+
+ for (GSList *l = searchpaths; l; l = l->next)
+ paths = g_slist_append(paths, g_strdup(l->data));
+
+ return paths;
}
/** @} */