summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-27 12:30:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-27 12:31:04 -0500
commit89408ac96e1e71282716d9a2a51472a54cd01ef1 (patch)
tree9d5ad0aae8ecefe52ff1f1c68bf179622fdb1f7c /color.c
parentb542ed3f41237f23bacc801a1f4f4946b887779f (diff)
downloadbfs-89408ac96e1e71282716d9a2a51472a54cd01ef1.tar.xz
Fix uninitialized read in parse_colors().
Diffstat (limited to 'color.c')
-rw-r--r--color.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/color.c b/color.c
index 78d6e99..3f56b4f 100644
--- a/color.c
+++ b/color.c
@@ -86,6 +86,7 @@ struct colors *parse_colors(const char *ls_colors) {
colors->warning = "40;33;01";
colors->error = "40;31;01";
colors->ext_list = NULL;
+ colors->data = NULL;
if (ls_colors) {
colors->data = strdup(ls_colors);