aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-05 02:59:55 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-05 02:59:55 +0100
commite5ddd6a6af2db0781ec5567bfcd9190279ae55d9 (patch)
treecd333e31a14a45305d536bf5a788817891db6c0e
parent8f7bcf7531158cebdfe222e52b74c073525c6b0d (diff)
downloadhex-e5ddd6a6af2db0781ec5567bfcd9190279ae55d9.tar.gz
hex-e5ddd6a6af2db0781ec5567bfcd9190279ae55d9.tar.xz
hex-e5ddd6a6af2db0781ec5567bfcd9190279ae55d9.zip
Fix a compiler warning
-rw-r--r--hex.c4
1 files 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)