aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSearchExpression.cc
diff options
context:
space:
mode:
authorGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-05-28 20:59:04 -0700
committerGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-05-28 20:59:04 -0700
commit0b9d6179767acf9cb5ef91370492cf3188d38e5a (patch)
tree5c2f3c5facb7b8bb2eb557199a82caa929ba8ad6 /src/core/imap/MCIMAPSearchExpression.cc
parenteb0daeaf247c11df6ba05b869a36b129d05e99a9 (diff)
Fixed the crashes while using the MCIMAPSearchExpression, mKind was not set and missing mco_mcObject function
Diffstat (limited to 'src/core/imap/MCIMAPSearchExpression.cc')
-rw-r--r--src/core/imap/MCIMAPSearchExpression.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSearchExpression.cc b/src/core/imap/MCIMAPSearchExpression.cc
index 55b0fc7f..373b93aa 100644
--- a/src/core/imap/MCIMAPSearchExpression.cc
+++ b/src/core/imap/MCIMAPSearchExpression.cc
@@ -19,7 +19,7 @@ IMAPSearchExpression::IMAPSearchExpression()
IMAPSearchExpression::IMAPSearchExpression(IMAPSearchExpression * other)
{
init();
- mKind = IMAPSearchKindNone;
+ mKind = other->mKind;
MC_SAFE_REPLACE_COPY(String, mHeader, other->mHeader);
MC_SAFE_REPLACE_COPY(String, mValue, other->mValue);
MC_SAFE_REPLACE_COPY(IMAPSearchExpression, mLeftExpression, other->mLeftExpression);