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:31:09 +0000 (23:31 -0700) | ||
commit | c96a6d36608166f2e1b74e639b34bb5ae8932683 | |
tree | af4dd761e47b9aaae142e1961ac78f43d5e16614 | tree | snapshot |
parent | 08b51f51e6a4cf2f5ad4b893707f1337a450e499 | 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.
This patches fixes two occurences where the value was passed
instead of the key.
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.
This patches fixes two occurences where the value was passed
instead of the key.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-tag.c | diff | blob | history | |
wt-status.c | diff | blob | history |