]> sigrok.org Git - libsigrok.git/blobdiff - hwplugin.c
Hook up output/text directory with autotools.
[libsigrok.git] / hwplugin.c
index e913a9afd754f88180108e00409c24e23424cd77..2ed6094bd42825165fa7d0cabb552dda428192b9 100644 (file)
@@ -111,8 +111,8 @@ struct sr_device_instance *sr_device_instance_new(int index, int status,
        sdi->index = index;
        sdi->status = status;
        sdi->instance_type = -1;
-       sdi->vendor = vendor ? strdup(vendor) : strdup("(unknown)");
-       sdi->model = model ? strdup(model) : NULL;
+       sdi->vendor = vendor ? strdup(vendor) : NULL;
+       sdi->model = model ? strdup(model) : strdup("(unknown)");
        sdi->version = version ? strdup(version) : NULL;
        sdi->priv = NULL;
        sdi->usb = NULL;