]> sigrok.org Git - libsigrok.git/blobdiff - hardware/gmc-mh-1x-2x/api.c
sr_dev_inst_new(): Use NULL (not "") if version unknown/nonexisting.
[libsigrok.git] / hardware / gmc-mh-1x-2x / api.c
index 09ed9c151bc79a86f278e2195b5dfc92d581c942..3c0a7aaff43ba13f9ed11596604dff623113f8fd 100644 (file)
@@ -224,7 +224,7 @@ static GSList *scan_1x_2x_rs232(GSList *options)
        if (model != METRAHIT_NONE) {
                sr_spew("%s %s detected!", VENDOR_GMC, gmc_model_str(model));
                if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, VENDOR_GMC,
-                               gmc_model_str(model), "")))
+                               gmc_model_str(model), NULL)))
                        return NULL;
                if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) {
                        sr_err("Device context malloc failed.");