From 668890973bc9438fc7a348222fb9c573510a6d1e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Aug 2022 19:35:17 -0700 Subject: [PATCH] gvc gvPluginList: abbreviate an open coded 'strview_str' --- lib/gvc/gvplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 1a3faf0bf..542c1f2e3 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -424,7 +424,7 @@ char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str) strview_t q = strview(pnext->typestr, ':'); if (!typestr_last.data || !strview_case_eq(typestr_last, q)) { list = RALLOC(cnt + 1, list, char *); - list[cnt++] = gv_strndup(q.data, q.size); + list[cnt++] = strview_str(q); } typestr_last = q; } -- 2.40.0