[empathy: 4/80] Handle unknown event types gracefully



commit 669b6782b2bb1c7275092f5923b8930cc2849c98
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Thu Jun 9 11:17:00 2011 +0100

    Handle unknown event types gracefully

 libempathy/empathy-message.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 32e205a..d97539f 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -343,6 +343,9 @@ empathy_message_from_tpl_log_event (TplEvent *logevent)
 		else
 			body = g_strdup_printf (_("Call from %s"),
 				tpl_entity_get_alias (tpl_event_get_sender (logevent)));
+	} else {
+		/* Unknown event type */
+		return NULL;
 	}
 
 	receiver = tpl_event_get_receiver (logevent);



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