summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump-display.c
diff options
context:
space:
mode:
authorSami Kerola2017-03-05 21:52:20 +0100
committerKarel Zak2017-03-13 14:48:04 +0100
commitc308e2050f3b7cc08be64227644ce1020a27fdfe (patch)
tree9efe0572d5e3f63021d9c614b09c826c4ff50858 /text-utils/hexdump-display.c
parentlib/colors: assert rathen than overflow [-Wnull-dereference] (diff)
downloadkernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.gz
kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.xz
kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.zip
misc: stop mixing declarations and code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/hexdump-display.c')
-rw-r--r--text-utils/hexdump-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/hexdump-display.c b/text-utils/hexdump-display.c
index ce714f68c..3e017635b 100644
--- a/text-utils/hexdump-display.c
+++ b/text-utils/hexdump-display.c
@@ -299,9 +299,9 @@ void display(struct hexdump *hex)
eaddress = address;
}
list_for_each (p, &endfu->prlist) {
- pr = list_entry(p, struct hexdump_pr, prlist);
-
const char *color = NULL;
+
+ pr = list_entry(p, struct hexdump_pr, prlist);
if (colors_wanted() && pr->colorlist
&& (color = color_cond(pr, bp, pr->bcnt))) {
color_enable(color);