From c0f628ef3c34546259b926ff89144b2904653f9d Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Wed, 6 Feb 2008 17:44:28 +0000 Subject: Mischael's fix for "IMAP KIO process dies (due to trailing nulls?)" BUG: 153885 Cherry-picked from: 1d8208d3815088eea3c36767acb0c5a0a1a61ec8 Signed-off-by: Luke Dashjr (cherry picked from commit b08cf5263b3fa78462f6d309a7f8dbe95ed51201) --- tdeioslave/imap4/imapinfo.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdeioslave') 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++; -- cgit v1.2.1