[Telepathy-commits] [telepathy-salut/master] check-gibber-xmpp-stanza.c: don't call debug functions if debug is disabled

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Jan 7 04:03:29 PST 2009


---
 tests/check-gibber-xmpp-stanza.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/check-gibber-xmpp-stanza.c b/tests/check-gibber-xmpp-stanza.c
index d504748..ab0e62d 100644
--- a/tests/check-gibber-xmpp-stanza.c
+++ b/tests/check-gibber-xmpp-stanza.c
@@ -40,7 +40,9 @@ START_TEST (test_build_with_html_message)
   const gchar *value;
 
   g_type_init ();
+#ifdef ENABLE_DEBUG
   gibber_debug_set_flags_from_env ();
+#endif
 
   stanza = gibber_xmpp_stanza_build (
       GIBBER_STANZA_TYPE_MESSAGE, GIBBER_STANZA_SUB_TYPE_NONE,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list