diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 10:56:06 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:37 -0800 |
commit | e08404a82d19a60fd60822e8c0d95dd5629e0809 (patch) | |
tree | fbdf1748be49f83e9c2dee7f0b34fae39d4458e7 | |
parent | diff.c: guard config parser from value=NULL (diff) | |
download | tgif-e08404a82d19a60fd60822e8c0d95dd5629e0809.tar.xz |
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; |