]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoder.c
Convert some g_malloc0() to g_malloc().
[libsigrokdecode.git] / decoder.c
index 6689bd488b5b07552b6f819f27a37f2642d8f1a4..21b756ba370620bf99db2aefb8a31f0f7f9c6b10 100644 (file)
--- a/decoder.c
+++ b/decoder.c
@@ -219,7 +219,7 @@ static int get_channels(const struct srd_decoder *d, const char *attr,
                                "a list of dict elements.", d->name, attr);
                        goto err_out;
                }
-               pdch = g_malloc0(sizeof(struct srd_channel));
+               pdch = g_malloc(sizeof(struct srd_channel));
                /* Add to list right away so it doesn't get lost. */
                pdchl = g_slist_prepend(pdchl, pdch);