diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-16 00:24:56 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-16 12:17:42 +0200 |
commit | 8f14effc02e20fe562f1081b8155e7fb93b22dcf (patch) | |
tree | 2a59f9936341f8e06157f3b06cde5bfece587c1c /instance.c | |
parent | 2d661bcb259dedee1857e90749418ce72f571ba6 (diff) | |
download | libsigrokdecode-8f14effc02e20fe562f1081b8155e7fb93b22dcf.tar.gz libsigrokdecode-8f14effc02e20fe562f1081b8155e7fb93b22dcf.zip |
instance.c: Fix a scan-build warning.
instance.c:278:25: warning: The left operand of '!=' is a garbage value
if (new_channelmap[i] != -1)
~~~~~~~~~~~~~~~~~ ^
Diffstat (limited to 'instance.c')
-rw-r--r-- | instance.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ SRD_API int srd_inst_channel_set_all(struct srd_decoder_inst *di, return SRD_ERR_ARG; } - new_channelmap = g_malloc(sizeof(int) * di->dec_num_channels); + new_channelmap = g_malloc0(sizeof(int) * di->dec_num_channels); /* * For now, map all indexes to channel -1 (can be overridden later). |