diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-15 23:57:31 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-15 23:57:31 +0200 |
commit | 35c10c0e24881de50b3391b1f3ecc9e43aa361b3 (patch) | |
tree | 6042a2a90966d87675d9cea95be661be32871d0c /decoder.c | |
parent | 73578d2ececd3a285ee3bb231de5d074195b6514 (diff) | |
download | libsigrokdecode-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |