]> sigrok.org Git - libsigrok.git/blobdiff - hardware/serial-dmm/api.c
sr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.
[libsigrok.git] / hardware / serial-dmm / api.c
index 96138743e85e473c664afd7b800eafcbf8835930..136d2a7cc002082dfbe6a2c4bba0d8c46613f68c 100644 (file)
@@ -392,7 +392,7 @@ static GSList *sdmm_scan(const char *conn, const char *serialcomm, int dmm)
        sr_info("Found device on port %s.", conn);
 
        if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, dmms[dmm].vendor,
-                                   dmms[dmm].device, "")))
+                                   dmms[dmm].device, NULL)))
                goto scan_cleanup;
 
        if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) {