summaryrefslogtreecommitdiffhomepage
path: root/source.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-03 16:25:52 +0100
committerJo-Philipp Wich <jo@mein.io>2022-02-03 16:26:44 +0100
commit98e59bfb615015c8533f4270d44061216697af3c (patch)
tree58ccf5b6316df62515b9476d4b5cbafe99cdb492 /source.c
parent7a65c14a8fa7b010c4e25a2519f7599173ed328f (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source.c b/source.c
index f2bd8bf..c4060eb 100644
--- a/source.c
+++ b/source.c
@@ -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;