From: Bert Vermeulen Date: Thu, 8 Apr 2010 14:44:13 +0000 (+0200) Subject: use strdup() instead of g_strdup() X-Git-Tag: libsigrok-0.1.0~578 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=54b38f64aa25d1cceebf1b31bcee0f11d67e432c;p=libsigrok.git use strdup() instead of g_strdup() --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index cb7f11a7..0bed4368 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -18,6 +18,7 @@ */ #include +#include #include @@ -46,7 +47,7 @@ GSList *list_serial_ports(void) if(!glob(serial_port_glob[i], 0, NULL, &g)) { for(j = 0; j < g.gl_pathc; j++) - ports = g_slist_append(ports, g_strdup(g.gl_pathv[j])); + ports = g_slist_append(ports, strdup(g.gl_pathv[j])); globfree(&g); } }