summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-04-11 18:05:07 +0000
committerChristos Zoulas <christos@zoulas.com>2022-04-11 18:05:07 +0000
commit360cec7946d8f1d408187d68aebcd68f3eec68a6 (patch)
tree2afee484ebeabad8082ba8954412d2e2e42b0c3b
parenta7cf2e446cb1d337e5287d8d6d23a72924a27a03 (diff)
downloadfile-git-360cec7946d8f1d408187d68aebcd68f3eec68a6.tar.gz
initialize hi;
-rw-r--r--src/encoding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding.c b/src/encoding.c
index 516cabd5..6b8ebb1e 100644
--- a/src/encoding.c
+++ b/src/encoding.c
@@ -35,7 +35,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: encoding.c,v 1.35 2022/04/11 13:10:29 christos Exp $")
+FILE_RCSID("@(#)$File: encoding.c,v 1.36 2022/04/11 18:05:07 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -481,6 +481,7 @@ looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf,
bigend = 1;
*ulen = 0;
+ hi = 0;
for (i = 2; i + 1 < nbytes; i += 2) {
uint32_t uc;