diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-02-03 16:25:52 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-02-03 16:26:44 +0100 |
commit | 98e59bfb615015c8533f4270d44061216697af3c (patch) | |
tree | 58ccf5b6316df62515b9476d4b5cbafe99cdb492 /source.c | |
parent | 7a65c14a8fa7b010c4e25a2519f7599173ed328f (diff) |
source: zero-initialize conversion union to make cppcheck happy
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'source.c')
-rw-r--r-- | source.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ uc_source_put(uc_source_t *source) uc_source_type_t uc_source_type_test(uc_source_t *source) { - union { char s[sizeof(uint32_t)]; uint32_t n; } buf; + union { char s[sizeof(uint32_t)]; uint32_t n; } buf = { 0 }; uc_source_type_t type = UC_SOURCE_TYPE_PLAIN; FILE *fp = source->fp; size_t rlen; |