From: Junio C Hamano Date: Mon, 11 Feb 2008 19:00:57 +0000 (-0800) Subject: wt-status.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=451d36bb25e1832dbe66b799f6526daa0b637d26;p=git.git wt-status.c: guard config parser from value=NULL status.color.* and color.status.* expect a string value Signed-off-by: Junio C Hamano --- diff --git a/wt-status.c b/wt-status.c index c0c247243..bfd1b0fcc 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; }