Skip to content

Commit

Permalink
builtin-tag.c: guard config parser from value=NULL
Browse files Browse the repository at this point in the history
user.signingkey configuration expects a string value.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 11, 2008
1 parent 4f9c412 commit 406d95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static int git_tag_config(const char *var, const char *value)
{
if (!strcmp(var, "user.signingkey")) {
if (!value)
die("user.signingkey without value");
return config_error_nonbool(value);
set_signingkey(value);
return 0;
}
Expand Down

0 comments on commit 406d95f

Please sign in to comment.