commit 8baae4976cc9f03cd1c03e9c06c242de5ce137b2
parent d45119b0779abae79a9a0bd64d1f22fcbb1a865c
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 11 Oct 2014 07:45:59 +0200
Fixing a bug when there is nothing usable given as id.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/imap.c b/imap.c
@@ -239,9 +239,11 @@ imap_argv2ids(char *cfgn, char *mailbox, int argc, char *argv[])
if (argelem->key == NULL)
continue;
nids = llist_splitstr(argelem->key, " ,");
- if (nids != NULL && nids->len > 0)
- llist_listadd(llist, nids);
- llist_free(nids);
+ if (nids != NULL) {
+ if (nids->len > 0)
+ llist_listadd(llist, nids);
+ llist_free(nids);
+ }
}
llist_free(allist);