diff options
author | Christos Zoulas <christos@zoulas.com> | 2022-04-11 18:05:07 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2022-04-11 18:05:07 +0000 |
commit | 360cec7946d8f1d408187d68aebcd68f3eec68a6 (patch) | |
tree | 2afee484ebeabad8082ba8954412d2e2e42b0c3b | |
parent | a7cf2e446cb1d337e5287d8d6d23a72924a27a03 (diff) | |
download | file-git-360cec7946d8f1d408187d68aebcd68f3eec68a6.tar.gz |
initialize hi;
-rw-r--r-- | src/encoding.c | 3 |
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; |