summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-15 23:57:31 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-15 23:57:31 +0200
commit35c10c0e24881de50b3391b1f3ecc9e43aa361b3 (patch)
tree6042a2a90966d87675d9cea95be661be32871d0c /decoder.c
parent73578d2ececd3a285ee3bb231de5d074195b6514 (diff)
downloadlibsigrokdecode-35c10c0e24881de50b3391b1f3ecc9e43aa361b3.tar.gz
libsigrokdecode-35c10c0e24881de50b3391b1f3ecc9e43aa361b3.zip
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.
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c2
1 files changed, 1 insertions, 1 deletions
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);