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) | ||
commit | 3ecb171d2b9aca7b09bf112594977d00925893b4 | |
tree | 3f2a7e8c89fe10e2e2cd7cfdd6e59ff20a49d42a | tree | snapshot |
parent | 9b373229506c9f563b2e2f053c3f1d932789fbfd | commit | diff |
Fix "config_error_nonbool" used with value instead of key
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>
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>
builtin-tag.c | diff | blob | history |