mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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>
This commit is contained in:
parent
451d36bb25
commit
3c17c34ac7
|
@ -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 )) {
|
||||
|
|
Loading…
Reference in a new issue