From e5ddd6a6af2db0781ec5567bfcd9190279ae55d9 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 5 Nov 2021 02:59:55 +0100 Subject: Fix a compiler warning --- hex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hex.c b/hex.c index d92f6f8..98211ef 100644 --- a/hex.c +++ b/hex.c @@ -648,9 +648,9 @@ app_write_footer (struct row_buffer *b, char id, int len, const char *fmt, ...) static void app_footer_field (struct row_buffer *b, char id, int len, const char *fmt, ...) { - const char *coding; + const char *coding = ""; if (len <= 1) - coding = ""; + ; else if (g_ctx.endianity == ENDIANITY_LE) coding = "le"; else if (g_ctx.endianity == ENDIANITY_BE) -- cgit v1.2.3-70-g09d2