Initialize conn->state.

Fixes #13.
This commit is contained in:
Jack Moffitt
2012-02-07 22:54:09 -07:00
parent 13175787fc
commit 801a844e30

View File

@@ -80,6 +80,7 @@ xmpp_conn_t *xmpp_conn_new(xmpp_ctx_t * const ctx)
conn->ctx = ctx;
conn->type = XMPP_UNKNOWN;
conn->state = XMPP_STATE_DISCONNECTED;
conn->sock = -1;
conn->tls = NULL;
conn->timeout_stamp = 0;