diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 21:56:06 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-12 00:11:37 +0300 |
commit | e08404a82d19a60fd60822e8c0d95dd5629e0809 (patch) | |
tree | fbdf1748be49f83e9c2dee7f0b34fae39d4458e7 | |
parent | 64f30e948be5fb2cd2f65e91c0eab5ab4719c636 (diff) |
git.c: guard config parser from value=NULL
alias.* configuration expects a string value
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | git.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |