summaryrefslogtreecommitdiffstats
path: root/tdeioslave
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2008-02-06 17:44:28 +0000
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-23 22:44:51 +0900
commitb08cf5263b3fa78462f6d309a7f8dbe95ed51201 (patch)
treeebeca17bd7c826ca29e9617aaed304af506e4f43 /tdeioslave
parent5aa4ac948f5eca76af9946b7abe3413ee8f46893 (diff)
downloadtdepim-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')
-rw-r--r--tdeioslave/imap4/imapinfo.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeioslave/imap4/imapinfo.cc b/tdeioslave/imap4/imapinfo.cc
index 0601488c..3e21ee77 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++;