]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
sr_driver_scan(): Improve checks.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index ec50a2b257ee734ee84804f4519fc6784c76d089..d40c911b347c1a572398d1c469f3f73343356aa2 100644 (file)
@@ -448,7 +448,9 @@ static GSList *hw_scan(GSList *options)
        (void)options;
 
        drvc = di->priv;
+
        devices = NULL;
+
        clear_instances();
 
        if (!(devc = g_try_malloc(sizeof(struct dev_context)))) {