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. */