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>
Junio C Hamano committed
Feb 11, 2008 at 11:00 UTC
451d36bb25e1832dbe66b799f6526daa0b637d26
1 file changed
+2
wt-status.c
+2
@@ -402,6 +402,8 @@ int git_status_config(const char *k, const char *v)
402
}
403
if (!prefixcmp(k, "status.color.") || !prefixcmp(k, "color.status.")) {
404
int slot = parse_status_slot(k, 13);
405
+ if (!v)
406
+ return config_error_nonbool(k);
407
color_parse(v, k, wt_status_colors[slot]);
408
return 0;
409
}