[evolution-data-server] Bug 776127 - Replies sometimes not grouped by thread



commit c81d4f6fac99f13e2c0a39e33ed66453c67a45db
Author: Milan Crha <mcrha redhat com>
Date:   Fri Dec 16 15:05:34 2016 +0100

    Bug 776127 - Replies sometimes not grouped by thread

 src/camel/camel-message-info.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-message-info.c b/src/camel/camel-message-info.c
index 03b4768..687823e 100644
--- a/src/camel/camel-message-info.c
+++ b/src/camel/camel-message-info.c
@@ -119,10 +119,12 @@ message_info_clone (const CamelMessageInfo *mi,
                GArray *copy;
                guint ii;
 
-               copy = g_array_sized_new (FALSE, FALSE, references->len, sizeof (guint64));
+               copy = g_array_sized_new (FALSE, FALSE, sizeof (guint64), references->len);
 
                for (ii = 0; ii < references->len; ii++) {
-                       g_array_append_val (copy, g_array_index (references, guint64, ii));
+                       guint64 refr = g_array_index (references, guint64, ii);
+
+                       g_array_append_val (copy, refr);
                }
 
                camel_message_info_take_references (result, copy);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]