]> sigrok.org Git - libsigrokdecode.git/blobdiff - srd.c
srd.c: Fix a compiler warning with gcc 8.
[libsigrokdecode.git] / srd.c
diff --git a/srd.c b/srd.c
index 5903c6d7e75b748149218ffa459323f5d8ae804b..eb29f61599ce09ecd90f9174ee3051df3d9eae32 100644 (file)
--- 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;
 }
 
 /** @} */