@matheusbsbs / matheus-bagliano / commits / 995c45279e
Fork 0

builtin-log.c: guard config parser from value=NULL

format.subjectprefix configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 11, 2008 at 10:48 UTC 995c45279e270811f53b7ff8bf44a07ed3457ddc
1 file changed +1 -1
builtin-log.c
+1 -1
@@ -219,7 +219,7 @@ static int git_log_config(const char *var, const char *value)
219 {
220 if (!strcmp(var, "format.subjectprefix")) {
221 if (!value)
222 - die("format.subjectprefix without value");
222 + config_error_nonbool(var);
223 fmt_patch_subject_prefix = xstrdup(value);
224 return 0;
225 }