]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fluke-dmm/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / fluke-dmm / api.c
index b7638fa2b18b6f355590489dcefcf2cd978fc755..a2208049094648aa5146aacf2d6e5ec0023c9377 100644 (file)
@@ -122,7 +122,7 @@ static GSList *fluke_scan(const char *conn, const char *serialcomm)
                                        continue;
                                /* Skip leading spaces in version number. */
                                for (s = 0; tokens[1][s] == ' '; s++);
-                               sdi = sr_dev_inst_new();
+                               sdi = g_malloc0(sizeof(struct sr_dev_inst));
                                sdi->status = SR_ST_INACTIVE;
                                sdi->vendor = g_strdup("Fluke");
                                sdi->model = g_strdup(tokens[0] + 6);