diff --git a/lib/hexdump.c b/lib/hexdump.c index 06833d404398..e146b1bf73dc 100644 --- a/lib/hexdump.c +++ b/lib/hexdump.c @@ -264,7 +264,7 @@ void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, { const u8 *ptr = buf; int i, linelen, remaining = len; - unsigned char linebuf[32 * 3 + 2 + 32 + 1]; + unsigned char linebuf[32 * 3 + 2 + 32 + 1] = ""; if (rowsize != 16 && rowsize != 32) rowsize = 16;