Skip to content

Commit

Permalink
Fix bug: Referenced a null pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Apr 27, 2019
1 parent 0a838be commit 81d1bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uwsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ int uwsc_init(struct uwsc_client *cl, struct ev_loop *loop, const char *url,
ev_io_init(&cl->iow, uwsc_io_write_cb, sock, EV_WRITE);

ev_io_init(&cl->ior, uwsc_io_read_cb, sock, EV_READ);
ev_io_start(loop, &cl->ior);
ev_io_start(cl->loop, &cl->ior);

ev_timer_init(&cl->timer, uwsc_timer_cb, 0.0, 1.0);
ev_timer_start(cl->loop, &cl->timer);
Expand Down

0 comments on commit 81d1bb6

Please sign in to comment.