From a411de2b3ee3ebc3e52fc4704451fdb581e97154 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 14 Aug 2024 10:19:40 -0700 Subject: [PATCH] [cff] Try to silence static code analyzer Part of https://github.com/harfbuzz/harfbuzz/issues/4832 --- src/hb-cff-interp-dict-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-cff-interp-dict-common.hh b/src/hb-cff-interp-dict-common.hh index a08b10b5f..b513a1e8c 100644 --- a/src/hb-cff-interp-dict-common.hh +++ b/src/hb-cff-interp-dict-common.hh @@ -84,7 +84,7 @@ struct dict_opset_t : opset_t enum Nibble { DECIMAL=10, EXP_POS, EXP_NEG, RESERVED, NEG, END }; - char buf[32]; + char buf[32] = {0}; unsigned char byte = 0; for (unsigned i = 0, count = 0; count < ARRAY_LENGTH (buf); ++i, ++count) {