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>
Junio C Hamano committed
Feb 15, 2008 at 09:37 UTC
588071112c7ca14a04d674e4f019572f0bb77326
1 file changed
+1
-1
diff.c
+1
-1
@@ -87,7 +87,7 @@ static int parse_lldiff_command(const char *var, const char *ep, const char *val
87
}
88
89
if (!value)
90
- return error("%s: lacks value", var);
90
+ return config_error_nonbool(var);
91
drv->cmd = strdup(value);
92
return 0;
93
}