]> sigrok.org Git - libsigrok.git/blobdiff - hardware/radioshack-dmm/api.c
Return SR_ERR_MALLOC upon allocation errors.
[libsigrok.git] / hardware / radioshack-dmm / api.c
index e9abf83068efc803e3e957ec28cd6aebf269e624..4eb5cbfa0ee995df59957768df6aa58009aadcd2 100644 (file)
@@ -85,7 +85,7 @@ static int hw_init(void)
 
        if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
                sr_err("Driver context malloc failed.");
-               return SR_ERR;
+               return SR_ERR_MALLOC;
        }
 
        di->priv = drvc;