summaryrefslogtreecommitdiffstats
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 20:00:57 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-11 22:11:37 +0100
commit451d36bb25e1832dbe66b799f6526daa0b637d26 (patch)
tree7d644716669ce89144f9b4071f981d1fae7b8ee0 /wt-status.c
parentsetup.c: guard config parser from value=NULL (diff)
downloadgit-451d36bb25e1832dbe66b799f6526daa0b637d26.tar.xz
git-451d36bb25e1832dbe66b799f6526daa0b637d26.zip
wt-status.c: guard config parser from value=NULL
status.color.* and color.status.* expect a string value Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wt-status.c b/wt-status.c
index c0c247243b..bfd1b0fcc6 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -402,6 +402,8 @@ int git_status_config(const char *k, const char *v)
}
if (!prefixcmp(k, "status.color.") || !prefixcmp(k, "color.status.")) {
int slot = parse_status_slot(k, 13);
+ if (!v)
+ return config_error_nonbool(k);
color_parse(v, k, wt_status_colors[slot]);
return 0;
}