Skip to content

Commit

Permalink
source: zero-initialize conversion union to make cppcheck happy
Browse files Browse the repository at this point in the history
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Feb 3, 2022
1 parent 7a65c14 commit 98e59bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source.c
Expand Up @@ -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;
Expand Down

0 comments on commit 98e59bf

Please sign in to comment.