]> sigrok.org Git - libsigrok.git/blobdiff - hardware/tondaj-sl-814/api.c
sr_driver_scan(): Improve checks.
[libsigrok.git] / hardware / tondaj-sl-814 / api.c
index 9edc441bdbd809aa1ea1a375652563630745a100..c621eeb8cf3042033c3fe21ac628447b89fd0014 100644 (file)
@@ -93,10 +93,11 @@ static GSList *hw_scan(GSList *options)
        GSList *devices, *l;
        const char *conn, *serialcomm;
 
-       devices = NULL;
        drvc = di->priv;
        drvc->instances = NULL;
 
+       devices = NULL;
+
        conn = serialcomm = NULL;
        for (l = options; l; l = l->next) {
                if (!(src = l->data)) {