]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: imap_arg_get_atom() should also treat NIL as valid atom.
authorTimo Sirainen <tss@iki.fi>
Sat, 2 Nov 2013 23:12:24 +0000 (01:12 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 2 Nov 2013 23:12:24 +0000 (01:12 +0200)
src/lib-imap/imap-arg.c

index 902ba2ccef88e285fdc79ec3f9f95ea0ef6d2bdb..80eda659d47421158796d3e12d38d8f871d90919 100644 (file)
@@ -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;