diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-27 12:30:46 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-27 12:31:04 -0500 |
commit | 89408ac96e1e71282716d9a2a51472a54cd01ef1 (patch) | |
tree | 9d5ad0aae8ecefe52ff1f1c68bf179622fdb1f7c /color.c | |
parent | b542ed3f41237f23bacc801a1f4f4946b887779f (diff) | |
download | bfs-89408ac96e1e71282716d9a2a51472a54cd01ef1.tar.xz |
Fix uninitialized read in parse_colors().
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |