fix device probe adding
This commit is contained in:
parent
7d65887435
commit
dd56a9320d
1
device.c
1
device.c
|
@ -162,7 +162,6 @@ void device_probe_add(struct sr_device *device, char *name)
|
||||||
snprintf(probename, 16, "%d", probenum);
|
snprintf(probename, 16, "%d", probenum);
|
||||||
p->name = g_strdup(probename);
|
p->name = g_strdup(probename);
|
||||||
}
|
}
|
||||||
p->name = g_strdup(name);
|
|
||||||
p->trigger = NULL;
|
p->trigger = NULL;
|
||||||
device->probes = g_slist_append(device->probes, p);
|
device->probes = g_slist_append(device->probes, p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue