]> asedeno.scripts.mit.edu Git - git.git/commitdiff
diff.c: fixup garding of config parser from value=NULL
authorJunio C Hamano <gitster@pobox.com>
Fri, 15 Feb 2008 17:37:54 +0000 (09:37 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Feb 2008 17:37:54 +0000 (09:37 -0800)
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>
diff.c

diff --git a/diff.c b/diff.c
index 4d2e23ae1b7dd4bd43d5c03871ce8ab519272115..2aaace890ca056b79479c3a98cb85454f3359cac 100644 (file)
--- 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;
 }