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>
This commit is contained in:
Junio C Hamano 2008-02-15 09:37:54 -08:00
parent d8e87570c3
commit 588071112c

2
diff.c
View File

@ -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;
}