summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b37322)
raw | patch | inline | side by side (parent: 9b37322)
author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 6 Jul 2008 04:10:04 +0000 (06:10 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 6 Jul 2008 06:30:38 +0000 (23:30 -0700) |
The function "config_error_nonbool", that is defined in "config.c",
is used to report an error when a config key in the config file
should have a corresponding value but it hasn't.
So the parameter to this function should be the key and not the
value, because the value is undefined. And it could crash if the
value is used.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
is used to report an error when a config key in the config file
should have a corresponding value but it hasn't.
So the parameter to this function should be the key and not the
value, because the value is undefined. And it could crash if the
value is used.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-tag.c | patch | blob | history |
diff --git a/builtin-tag.c b/builtin-tag.c
index e675206de38f0709b4c07e1667d791bf9b6704cb..3c97c696a50cb55e78774c743436cf50cad35f96 100644 (file)
--- a/builtin-tag.c
+++ b/builtin-tag.c
{
if (!strcmp(var, "user.signingkey")) {
if (!value)
- return config_error_nonbool(value);
+ return config_error_nonbool(var);
set_signingkey(value);
return 0;
}