From e55f6d7f4d831d370001999d55dafea9888a4a9f Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 21 Feb 2022 21:53:33 +0100 Subject: Set libstrophe log verbosity Set this to 0. We might want to have this configurable later. For now we fix the valgrind report: ``` Conditional jump or move depends on uninitialised value xmpp_debug_verbose() ``` Which will be fixed in libstrophe > 0.11.0 by commit https://github.com/strophe/libstrophe/commit/28f3ce19b803b3c2628c37545e3f5b88e7ea1a55 --- src/xmpp/connection.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 57de5ad1..c5475258 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -170,6 +170,7 @@ connection_connect(const char* const jid, const char* const passwd, const char* log_warning("Failed to get libstrophe ctx during connect"); return JABBER_DISCONNECTED; } + xmpp_ctx_set_verbosity(conn.xmpp_ctx, 0); conn.xmpp_conn = xmpp_conn_new(conn.xmpp_ctx); if (conn.xmpp_conn == NULL) { log_warning("Failed to get libstrophe conn during connect"); -- cgit 1.4.1-2-gfad0