X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcolead-slm%2Fapi.c;h=39e557a676ee2106fd9d232e82e6c154f0edcab7;hb=4b97c74e0b5c19ad0ee04620b618461248ab69d7;hp=fd6112d86b80b6042e3cf8c2b7414daaa68a2f53;hpb=c0eea11c4535e071c72b357fa7e2d1288104c134;p=libsigrok.git diff --git a/hardware/colead-slm/api.c b/hardware/colead-slm/api.c index fd6112d8..39e557a6 100644 --- a/hardware/colead-slm/api.c +++ b/hardware/colead-slm/api.c @@ -97,10 +97,11 @@ static GSList *hw_scan(GSList *options) GSList *devices, *l; const char *conn, *serialcomm; - devices = NULL; drvc = di->priv; drvc->instances = NULL; + devices = NULL; + conn = serialcomm = NULL; for (l = options; l; l = l->next) { src = l->data; @@ -123,7 +124,7 @@ static GSList *hw_scan(GSList *options) return NULL; if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) { - sr_dbg("failed to malloc devc"); + sr_dbg("Device context malloc failed."); return NULL; }