Initialize sentmsghook to NULL
[cascardo/hcxmpp.git] / xmpp.c
diff --git a/xmpp.c b/xmpp.c
index 8095af7..44f5761 100644 (file)
--- a/xmpp.c
+++ b/xmpp.c
@@ -39,6 +39,7 @@ hc_xmpp_new (iksStreamHook *hook, char *server, char *user, char *pass)
   xmpp->sasl = NONE;
   xmpp->status = HC_XMPP_NONE;
   xmpp->msghook = NULL;
+  xmpp->sentmsghook = NULL;
   xmpp->nshooks = g_hash_table_new (g_str_hash, g_str_equal);
   g_hash_table_insert (xmpp->nshooks, HC_XMPP_NS_BIND, hc_xmpp_hook_bind);
   g_hash_table_insert (xmpp->nshooks, HC_XMPP_NS_SESSION, hc_xmpp_hook_session);