diff options
Diffstat (limited to 'src/rexmpp.c')
-rw-r--r-- | src/rexmpp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rexmpp.c b/src/rexmpp.c index 04ec798..c9ec44e 100644 --- a/src/rexmpp.c +++ b/src/rexmpp.c @@ -101,6 +101,11 @@ rexmpp_err_t rexmpp_init (rexmpp_t *s, s->xml_in_cb = xml_in_cb; s->xml_out_cb = xml_out_cb; + if (jid == NULL) { + rexmpp_log(s, LOG_CRIT, "No initial JID is provided."); + return REXMPP_E_JID; + } + s->xml_parser = xmlCreatePushParserCtxt(&sax, s, "", 0, NULL); if (s->xml_parser == NULL) { |