Ensure pollfd_index is initialised.

pull/746/merge
Roger A. Light 8 years ago
parent ba8734b749
commit 4d3f5b2b39

@ -34,6 +34,7 @@ struct mosquitto *context__init(struct mosquitto_db *db, mosq_sock_t sock)
context = mosquitto__calloc(1, sizeof(struct mosquitto));
if(!context) return NULL;
context->pollfd_index = -1;
context->state = mosq_cs_new;
context->sock = sock;
context->last_msg_in = mosquitto_time();

Loading…
Cancel
Save