aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-15 09:37:54 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-15 09:37:54 -0800
commit588071112c7ca14a04d674e4f019572f0bb77326 (patch)
tree64081fe393b06e71508b5c75003a1bcc954ba9c9 /diff.c
parentd8e87570c32b190af3991d180f37adb8cf5eb99c (diff)
downloadgit-588071112c7ca14a04d674e4f019572f0bb77326.tar.gz
git-588071112c7ca14a04d674e4f019572f0bb77326.tar.xz
diff.c: fixup garding of config parser from value=NULL
Christian Couder noticed that there still were a handcrafted error() call that we should have converted to config_error_nonbool() where parse_lldiff_command() parses the configuration file. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 4d2e23ae1..2aaace890 100644
--- a/diff.c
+++ b/diff.c
@@ -87,7 +87,7 @@ static int parse_lldiff_command(const char *var, const char *ep, const char *val
}
if (!value)
- return error("%s: lacks value", var);
+ return config_error_nonbool(var);
drv->cmd = strdup(value);
return 0;
}