telepathy-glib: channel-group: don't crash if no message has been provided
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Thu Oct 24 05:54:39 PDT 2013
Module: telepathy-glib
Branch: master
Commit: d4388c7c1fedb1e91b99075cd6b15b5cf573a302
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=d4388c7c1fedb1e91b99075cd6b15b5cf573a302
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Thu Oct 24 14:38:45 2013 +0200
channel-group: don't crash if no message has been provided
---
telepathy-glib/channel-group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/telepathy-glib/channel-group.c b/telepathy-glib/channel-group.c
index c7f2b07..204e398 100644
--- a/telepathy-glib/channel-group.c
+++ b/telepathy-glib/channel-group.c
@@ -1096,7 +1096,7 @@ handle_members_changed (TpChannel *self,
const gchar *debug_message = tp_asv_get_string (details,
"debug-message");
- if (debug_message == NULL && message[0] != '\0')
+ if (debug_message == NULL && !tp_str_empty (message))
debug_message = message;
if (debug_message == NULL && error_detail != NULL)
More information about the telepathy-commits
mailing list