summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-11 15:51:07 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-11-20 09:07:08 -0500
commit28c2b06a0477d2c84b7229d4e54056b1ec44ac36 (patch)
treea5c0fc070b6759ca82fe3b37d1b06451384a02be /src
parent77eb05629afe2f551bf29a390112e37358d1b36a (diff)
downloadbfs-28c2b06a0477d2c84b7229d4e54056b1ec44ac36.tar.xz
color: Squelch a -Wmaybe-uninitialized warning on non-LTO builds
Diffstat (limited to 'src')
-rw-r--r--src/color.c2
1 files changed, 1 insertions, 1 deletions
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) {