X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoder.c;h=21b756ba370620bf99db2aefb8a31f0f7f9c6b10;hp=6689bd488b5b07552b6f819f27a37f2642d8f1a4;hb=25d3576134e7b57ca169e8e4ebd4e4ce5dcf62dd;hpb=af0ca734f558aa04c55b15e119a451c85863888a diff --git a/decoder.c b/decoder.c index 6689bd4..21b756b 100644 --- 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);