12 - else if (ImapDelimChars && ImapDelimChars[0])
13 - delim = ImapDelimChars[0];
17 while (mailbox && *mailbox && i < plen - 1)
19 - if (strchr(ImapDelimChars, *mailbox) || *mailbox == delim)
20 + if ((ImapDelimChars && strchr(ImapDelimChars, *mailbox))
21 + || *mailbox == delim)
23 + /* use connection delimiter if known. Otherwise use user delimiter */
27 (strchr(ImapDelimChars, *mailbox) || *mailbox == delim))