aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 10:53:36 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-11 13:11:36 -0800
commita7269e5cb703083efb084ba19bc703ebc915aa5c (patch)
treee87f4925e36a2834ae3df5c43ca9445a98bd8873
parentc64b9ad0fc02134d7271eb841fbdef9bc16660ea (diff)
downloadgit-a7269e5cb703083efb084ba19bc703ebc915aa5c.tar.gz
git-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>
-rw-r--r--convert.c4
1 files changed, 2 insertions, 2 deletions
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;
}