From: Junio C Hamano Date: Mon, 11 Feb 2008 20:04:00 +0000 (-0800) Subject: imap-send.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c17c34ac79f58665db73deeb995bc070b7f1a2f;p=git.git imap-send.c: guard config parser from value=NULL None of the configuration variables this expects is boolean. Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index a429a76a6..9025d9aa3 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 )) {