]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/chronovu-la/api.c
Consistently use g_malloc0() for allocating devc.
[libsigrok.git] / src / hardware / chronovu-la / api.c
index b31db039b0f18420e8336349572f22096f41e652..d9e3cc3914edad598d79d45847afa66d17f2abce 100644 (file)
@@ -87,7 +87,7 @@ static int add_device(int idx, int model, GSList **devices)
        drvc = di->priv;
 
        /* Allocate memory for our private device context. */
-       devc = g_try_malloc(sizeof(struct dev_context));
+       devc = g_malloc0(sizeof(struct dev_context));
 
        /* Set some sane defaults. */
        devc->prof = &cv_profiles[model];