]> sigrok.org Git - libsigrok.git/commitdiff
fix device probe adding
authorBert Vermeulen <redacted>
Mon, 31 Jan 2011 22:44:18 +0000 (23:44 +0100)
committerBert Vermeulen <redacted>
Mon, 31 Jan 2011 22:44:18 +0000 (23:44 +0100)
device.c

index 1079bc3edfebf95191b9d96532479f0526cc5951..9985fca987c8e7a209c18e887af8e9c66df029d9 100644 (file)
--- a/device.c
+++ b/device.c
@@ -162,7 +162,6 @@ void device_probe_add(struct sr_device *device, char *name)
                snprintf(probename, 16, "%d", probenum);
                p->name = g_strdup(probename);
        }
-       p->name = g_strdup(name);
        p->trigger = NULL;
        device->probes = g_slist_append(device->probes, p);
 }