From: Junio C Hamano Date: Mon, 11 Feb 2008 18:56:06 +0000 (-0800) Subject: git.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~37 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e08404a82d19a60fd60822e8c0d95dd5629e0809;p=git.git git.c: guard config parser from value=NULL alias.* configuration expects a string value Signed-off-by: Junio C Hamano --- 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;