From 98e59bfb615015c8533f4270d44061216697af3c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 3 Feb 2022 16:25:52 +0100 Subject: source: zero-initialize conversion union to make cppcheck happy Signed-off-by: Jo-Philipp Wich --- source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3