[next] telepathy-gabble: gabble_media_factory_create_call: ensure that request_properties is not NULL

George Kiagiadakis gkiagia at kemper.freedesktop.org
Fri Dec 2 16:19:27 UTC 2016


Module: telepathy-gabble
Branch: next
Commit: ab5b73b9284ec72d1023336c5d91660e87ac96f6
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=ab5b73b9284ec72d1023336c5d91660e87ac96f6

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Jun  2 16:28:36 2014 +0200

gabble_media_factory_create_call: ensure that request_properties is not NULL

---

 src/media-factory.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/media-factory.c b/src/media-factory.c
index 039f549..ea47343 100644
--- a/src/media-factory.c
+++ b/src/media-factory.c
@@ -520,6 +520,8 @@ gabble_media_factory_create_call (TpChannelManager *manager,
   gboolean initial_audio, initial_video;
   const gchar *initial_audio_name, *initial_video_name;
 
+  g_return_val_if_fail (request_properties != NULL, FALSE);
+
   if (tp_strdiff (tp_asv_get_string (request_properties,
           TP_PROP_CHANNEL_CHANNEL_TYPE),
         TP_IFACE_CHANNEL_TYPE_CALL))



More information about the telepathy-commits mailing list