From 28c2b06a0477d2c84b7229d4e54056b1ec44ac36 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 11 Nov 2024 15:51:07 -0500 Subject: color: Squelch a -Wmaybe-uninitialized warning on non-LTO builds --- src/color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/color.c') diff --git a/src/color.c b/src/color.c index e7f0973..fdaf2eb 100644 --- a/src/color.c +++ b/src/color.c @@ -975,7 +975,7 @@ static const struct esc_seq *file_color(const struct colors *colors, const struc goto error; } - const struct bfs_stat *statbuf; + const struct bfs_stat *statbuf = NULL; const struct esc_seq *color = NULL; switch (type) { -- cgit v1.2.3