Browse Source

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>
maint
Junio C Hamano 17 years ago
parent
commit
3c17c34ac7
  1. 4
      imap-send.c

4
imap-send.c

@ -1254,6 +1254,10 @@ git_imap_config(const char *key, const char *val) @@ -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…
Cancel
Save