Fix a compiler warning

This commit is contained in:
Přemysl Eric Janouch 2021-11-05 02:59:55 +01:00
parent 8f7bcf7531
commit e5ddd6a6af
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 2 deletions

4
hex.c
View File

@ -648,9 +648,9 @@ app_write_footer (struct row_buffer *b, char id, int len, const char *fmt, ...)
static void static void
app_footer_field (struct row_buffer *b, char id, int len, const char *fmt, ...) app_footer_field (struct row_buffer *b, char id, int len, const char *fmt, ...)
{ {
const char *coding; const char *coding = "";
if (len <= 1) if (len <= 1)
coding = ""; ;
else if (g_ctx.endianity == ENDIANITY_LE) else if (g_ctx.endianity == ENDIANITY_LE)
coding = "le"; coding = "le";
else if (g_ctx.endianity == ENDIANITY_BE) else if (g_ctx.endianity == ENDIANITY_BE)