From e08404a82d19a60fd60822e8c0d95dd5629e0809 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 11 Feb 2008 10:56:06 -0800 Subject: [PATCH] git.c: guard config parser from value=NULL alias.* configuration expects a string value Signed-off-by: Junio C Hamano --- git.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git.c b/git.c index 15fec8974..0cb86884d 100644 --- a/git.c +++ b/git.c @@ -93,6 +93,8 @@ static char *alias_string; static int git_alias_config(const char *var, const char *value) { if (!prefixcmp(var, "alias.") && !strcmp(var + 6, alias_command)) { + if (!value) + return config_error_nonbool(var); alias_string = xstrdup(value); } return 0; -- 2.30.2