projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make m_dupstr return NULL if the string was empty.
[apps/madmutt.git]
/
imap
/
imap.c
diff --git
a/imap/imap.c
b/imap/imap.c
index
6f50317
..
2a4feca
100644
(file)
--- a/
imap/imap.c
+++ b/
imap/imap.c
@@
-785,12
+785,13
@@
int imap_close_connection (CONTEXT *ctx)
/* imap_set_flag: append str to flags if we currently have permission
* according to aclbit */
/* imap_set_flag: append str to flags if we currently have permission
* according to aclbit */
-static void imap_set_flag
(IMAP_DATA *
idata, int aclbit, int flag,
-
const char *str, char *flags, size_t flsize)
+static void imap_set_flag
(IMAP_DATA *
idata, int aclbit, int flag,
+ const char *str, char *flags, size_t flsize)
{
{
- if (mutt_bit_isset (idata->rights, aclbit))
- if (flag)
- str_cat (flags, flsize, str);
+ if (mutt_bit_isset(idata->rights, aclbit)) {
+ if (flag)
+ m_strcat(flags, flsize, str);
+ }
}
/* imap_make_msg_set: make an IMAP4rev1 UID message set out of a set of
}
/* imap_make_msg_set: make an IMAP4rev1 UID message set out of a set of