X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-dmm%2Fapi.c;h=cf9185109d0ca53f4449cd6fce075c37ecc7e0a6;hb=aac29cc192ccf82b64e77b5e6b11b411da32deed;hp=35ceaaed4a12c5bc64535037911edd99c2199dea;hpb=a9b2283fd038a2a8c3e2dc1ede4fcc51d5e62c7c;p=libsigrok.git diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index 35ceaaed..cf918510 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -260,7 +260,7 @@ static GSList *scan(GSList *options, int dmm) devc->first_run = TRUE; - sdi = sr_dev_inst_new(); + sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_INACTIVE; sdi->vendor = g_strdup(udmms[dmm].vendor); sdi->model = g_strdup(udmms[dmm].device);