diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 10:53:36 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:36 -0800 |
commit | a7269e5cb703083efb084ba19bc703ebc915aa5c (patch) | |
tree | e87f4925e36a2834ae3df5c43ca9445a98bd8873 | |
parent | c64b9ad0fc02134d7271eb841fbdef9bc16660ea (diff) | |
download | git-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |