[evolution-ews] Bug #680153 - Crash under message_info_from_db()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #680153 - Crash under message_info_from_db()
- Date: Wed, 18 Jul 2012 16:59:29 +0000 (UTC)
commit de8e452e828070d163a759930ed407f122de96a6
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 18 18:59:05 2012 +0200
Bug #680153 - Crash under message_info_from_db()
src/camel/camel-ews-summary.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/camel/camel-ews-summary.c b/src/camel/camel-ews-summary.c
index ac37c4d..04ffb82 100644
--- a/src/camel/camel-ews-summary.c
+++ b/src/camel/camel-ews-summary.c
@@ -197,11 +197,15 @@ message_info_from_db (CamelFolderSummary *s,
gchar **values;
iinfo = (CamelEwsMessageInfo *) info;
- values = g_strsplit (part, " ", -1);
+ if (part) {
+ values = g_strsplit (part, " ", -1);
- iinfo->server_flags = g_ascii_strtoll (values[0], NULL, 10);
- iinfo->item_type = g_ascii_strtoll (values[1], NULL, 10);
- iinfo->change_key = g_strdup (values[2]);
+ if (values && values[0] && values[1] && values[2]) {
+ iinfo->server_flags = g_ascii_strtoll (values[0], NULL, 10);
+ iinfo->item_type = g_ascii_strtoll (values[1], NULL, 10);
+ iinfo->change_key = g_strdup (values[2]);
+ }
+ }
g_strfreev (values);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]