From ace922317fa074c29660eb0cc2b3f5a22bbd32f7 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 13 Oct 2014 09:56:39 +0300 Subject: [PATCH] threader: try to handle pathless messages --- lib/mu-threader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mu-threader.c b/lib/mu-threader.c index 3379c817..2402cdc1 100644 --- a/lib/mu-threader.c +++ b/lib/mu-threader.c @@ -167,11 +167,12 @@ find_or_create (GHashTable *id_table, MuMsg *msg, guint docid) if (!msgid) { /* no path either? seems to happen... */ g_warning ("message without path"); snprintf (fake, sizeof(fake), "fake:%p", (gpointer)msg); + msgid = fake; } /* XXX the '' works around a crash; find a better * solution */ - c = g_hash_table_lookup (id_table, msgid ? msgid : fake); + c = g_hash_table_lookup (id_table, msgid); /* If id_table contains an empty MuContainer for this ID: * * * Store this message in the MuContainer's message slot. */