diff options
author | Allen Winter <winter@kde.org> | 2008-02-06 17:44:28 +0000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-23 22:44:51 +0900 |
commit | b08cf5263b3fa78462f6d309a7f8dbe95ed51201 (patch) | |
tree | ebeca17bd7c826ca29e9617aaed304af506e4f43 /tdeioslave/imap4 | |
parent | 5aa4ac948f5eca76af9946b7abe3413ee8f46893 (diff) | |
download | tdepim-b08cf5263b3fa78462f6d309a7f8dbe95ed51201.tar.gz tdepim-b08cf5263b3fa78462f6d309a7f8dbe95ed51201.zip |
Mischael's fix for "IMAP KIO process dies (due to trailing nulls?)"
BUG: 153885
Cherry-picked from: 1d8208d3815088eea3c36767acb0c5a0a1a61ec8
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
Diffstat (limited to 'tdeioslave/imap4')
-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++; |