dovecot-2.2: lib-imap: imap_arg_get_atom() should also treat NIL...

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 3 01:12:35 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/55e03b34ae73
changeset: 16922:55e03b34ae73
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 03 01:12:24 2013 +0200
description:
lib-imap: imap_arg_get_atom() should also treat NIL as valid atom.

diffstat:

 src/lib-imap/imap-arg.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1e75d6c90c4a -r 55e03b34ae73 src/lib-imap/imap-arg.c
--- a/src/lib-imap/imap-arg.c	Sat Nov 02 22:57:27 2013 +0200
+++ b/src/lib-imap/imap-arg.c	Sun Nov 03 01:12:24 2013 +0200
@@ -5,7 +5,7 @@
 
 bool imap_arg_get_atom(const struct imap_arg *arg, const char **str_r)
 {
-	if (arg->type != IMAP_ARG_ATOM)
+	if (arg->type != IMAP_ARG_ATOM && arg->type != IMAP_ARG_NIL)
 		return FALSE;
 
 	*str_r = arg->_data.str;


More information about the dovecot-cvs mailing list