X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=srd.c;h=eb29f61599ce09ecd90f9174ee3051df3d9eae32;hp=5903c6d7e75b748149218ffa459323f5d8ae804b;hb=43dc03965ffa8967884cf320660b0934463f3739;hpb=577af027774c422a1d5a73b7a8d1da03caa4e068 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; } /** @} */