tFixing a bug when there is nothing usable given as id. - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 8baae4976cc9f03cd1c03e9c06c242de5ce137b2
(DIR) parent d45119b0779abae79a9a0bd64d1f22fcbb1a865c
(HTM) 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:
imap.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/imap.c b/imap.c
t@@ -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);