From: Junio C Hamano Date: Mon, 11 Feb 2008 18:53:36 +0000 (-0800) Subject: convert.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~39 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a7269e5cb703083efb084ba19bc703ebc915aa5c;p=git.git convert.c: guard config parser from value=NULL filter.*.smudge and filter.*.clean configuration variables expect a string value. Signed-off-by: Junio C Hamano --- diff --git a/convert.c b/convert.c index 80f114b2e..552707e8e 100644 --- a/convert.c +++ b/convert.c @@ -326,14 +326,14 @@ static int read_convert_config(const char *var, const char *value) if (!strcmp("smudge", ep)) { if (!value) - return error("%s: lacks value", var); + return config_error_nonbool(var); drv->smudge = strdup(value); return 0; } if (!strcmp("clean", ep)) { if (!value) - return error("%s: lacks value", var); + return config_error_nonbool(var); drv->clean = strdup(value); return 0; }