summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 20:04:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-11 21:14:25 (GMT)
commit3c17c34ac79f58665db73deeb995bc070b7f1a2f (patch)
treedd848721bbd9945a96b340d1974db1ebac8116f7 /imap-send.c
parent451d36bb25e1832dbe66b799f6526daa0b637d26 (diff)
downloadgit-3c17c34ac79f58665db73deeb995bc070b7f1a2f.zip
git-3c17c34ac79f58665db73deeb995bc070b7f1a2f.tar.gz
git-3c17c34ac79f58665db73deeb995bc070b7f1a2f.tar.bz2
imap-send.c: guard config parser from value=NULL
None of the configuration variables this expects is boolean. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index a429a76..9025d9a 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1254,6 +1254,10 @@ git_imap_config(const char *key, const char *val)
if (strncmp( key, imap_key, sizeof imap_key - 1 ))
return 0;
+
+ if (!val)
+ return config_error_nonbool(key);
+
key += sizeof imap_key - 1;
if (!strcmp( "folder", key )) {