X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fasix-sigma%2Fasix-sigma.c;h=c02827461214329deae2c411d9fbe8657ff06bbe;hp=53e35816374614babce2568978c7e844750b3303;hb=f57d8ffe66612a1fdc20ed09c222f8ea59bd84d4;hpb=aac29cc192ccf82b64e77b5e6b11b411da32deed diff --git a/src/hardware/asix-sigma/asix-sigma.c b/src/hardware/asix-sigma/asix-sigma.c index 53e35816..c0282746 100644 --- a/src/hardware/asix-sigma/asix-sigma.c +++ b/src/hardware/asix-sigma/asix-sigma.c @@ -341,10 +341,7 @@ static GSList *scan(GSList *options) devices = NULL; - if (!(devc = g_try_malloc(sizeof(struct dev_context)))) { - sr_err("%s: devc malloc failed", __func__); - return NULL; - } + devc = g_malloc0(sizeof(struct dev_context)); ftdi_init(&devc->ftdic);