From 35c10c0e24881de50b3391b1f3ecc9e43aa361b3 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 15 May 2018 23:57:31 +0200 Subject: Convert some g_malloc0() to g_malloc(). For the converted calls there's no requirement for all struct fields being memset()'d to zero, or all struct fields are explicitly set later anyway. --- decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder.c') 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); -- cgit v1.2.3-70-g09d2