diff options
Diffstat (limited to 'tdeioslave/imap4/imapinfo.cc')
-rw-r--r-- | tdeioslave/imap4/imapinfo.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeioslave/imap4/imapinfo.cc b/tdeioslave/imap4/imapinfo.cc index 0601488c8..3e21ee772 100644 --- a/tdeioslave/imap4/imapinfo.cc +++ b/tdeioslave/imap4/imapinfo.cc @@ -196,6 +196,9 @@ ulong imapInfo::_flags (const TQCString & inFlags) ulong flags = 0; parseString flagsString; flagsString.data.duplicate(inFlags.data(), inFlags.length()); + if ( flagsString.isEmpty() ) { + return flags; + } if (flagsString[0] == '(') flagsString.pos++; |