Skip to content

Commit

Permalink
imap-send.c: guard config parser from value=NULL
Browse files Browse the repository at this point in the history
None of the configuration variables this expects is boolean.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 11, 2008
1 parent 451d36b commit 3c17c34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )) {
Expand Down

0 comments on commit 3c17c34

Please sign in to comment.