From: Junio C Hamano Date: Fri, 15 Feb 2008 17:37:54 +0000 (-0800) Subject: diff.c: fixup garding of config parser from value=NULL X-Git-Tag: v1.5.4.2~18 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/588071112c7ca14a04d674e4f019572f0bb77326?ds=inline;hp=--cc 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 --- 588071112c7ca14a04d674e4f019572f0bb77326 diff --git a/diff.c b/diff.c index 4d2e23ae1b..2aaace890c 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; }