[telepathy-glib/master] tp_text_mixin_class_init: critical if the mixin class wasn't set up properly
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Dec 1 12:47:18 PST 2009
This avoids a coverity warning about the unused assignment, and matches
the intention.
---
telepathy-glib/text-mixin.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/text-mixin.c b/telepathy-glib/text-mixin.c
index 5660c41..22b53cb 100644
--- a/telepathy-glib/text-mixin.c
+++ b/telepathy-glib/text-mixin.c
@@ -155,6 +155,7 @@ tp_text_mixin_class_init (GObjectClass *obj_cls, glong offset)
GINT_TO_POINTER (offset));
mixin_cls = TP_TEXT_MIXIN_CLASS (obj_cls);
+ g_return_if_fail (mixin_cls != NULL);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list