diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-06-06 18:02:28 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-06-06 18:02:28 -0600 |
commit | ea54909c67de2589e6632efb25550814a2fc2411 (patch) | |
tree | ae36e8f3e6fad73624eadd681d5dab5996a94744 /imap/src/osdep/unix/dummy.c | |
parent | e10411bf0ecb248b65ca83882e945e15f906a6d4 (diff) | |
download | alpine-ea54909c67de2589e6632efb25550814a2fc2411.tar.xz |
* Clear some warnings given by gcc-10.
Diffstat (limited to 'imap/src/osdep/unix/dummy.c')
-rw-r--r-- | imap/src/osdep/unix/dummy.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/imap/src/osdep/unix/dummy.c b/imap/src/osdep/unix/dummy.c index 660c916a..4c57c094 100644 --- a/imap/src/osdep/unix/dummy.c +++ b/imap/src/osdep/unix/dummy.c @@ -724,8 +724,11 @@ long dummy_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data) /* append to INBOX? */ if (!compare_cstring (mailbox,"INBOX")) { /* yes, if no empty proto try creating */ - if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX")) - ts = NIL; + if (!ts){ + ts = default_proto (NIL); + if(!(*ts->dtb->create)(ts,"INBOX")) + ts = NIL; + } } else if (dummy_file (tmp,mailbox) && ((fd = open (tmp,O_RDONLY,NIL)) < 0)) { if ((e = errno) == ENOENT) /* failed, was it no such file? */ |