summaryrefslogtreecommitdiffhomepage
path: root/source.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-03 20:04:53 +0100
committerGitHub <noreply@github.com>2022-02-03 20:04:53 +0100
commit5bd764a35aeaf50b54957bfa94ba94198514baf0 (patch)
tree86b727f434302ffb28cb59278243517f9765e170 /source.c
parent3878da883b8a54fb863fc6dcd9b9b8949caa6300 (diff)
parent7edad5cefa0f065aa83dffd2d7830aeaf9f38662 (diff)
Merge pull request #37 from jow-/stdlib-tests
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;