summaryrefslogtreecommitdiffstats
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 23:12:54 +0900
commitc0f628ef3c34546259b926ff89144b2904653f9d (patch)
treea78dcb8132d0e8e0c670708482a3304d2ff22e45
parentf31b012bad89909adef6abdade47a176282633cb (diff)
downloadtdepim-c0f628ef3c34546259b926ff89144b2904653f9d.tar.gz
tdepim-c0f628ef3c34546259b926ff89144b2904653f9d.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> (cherry picked from commit b08cf5263b3fa78462f6d309a7f8dbe95ed51201)
-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 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++;