summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-02-11 10:53:36 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-02-11 13:11:36 -0800
commita7269e5cb703083efb084ba19bc703ebc915aa5c (patch)
treee87f4925e36a2834ae3df5c43ca9445a98bd8873 /convert.c
parentconnect.c: guard config parser from value=NULL (diff)
downloadtgif-a7269e5cb703083efb084ba19bc703ebc915aa5c.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 'convert.c')
-rw-r--r--convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert.c b/convert.c
index 80f114b2e2..552707e8e6 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;
}