From: Jacob Potter Date: Sun, 14 Dec 2008 08:23:42 +0000 (-0500) Subject: init xnum and ynum X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/9eee8073b16fad5359206bb7d832293ce878dd16?hp=--cc init xnum and ynum --- 9eee8073b16fad5359206bb7d832293ce878dd16 diff --git a/net/rfb.c b/net/rfb.c index 232a2bb..13f6fb4 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -594,6 +594,8 @@ static err_t rfb_accept(void *arg, struct tcp_pcb *pcb, err_t err) { state->writepos = 0; state->update_requested = 0; state->send_state = SST_IDLE; + state->chunk_xnum = 0; + state->chunk_ynum = 0; memset(state->checksums, 0, sizeof(state->checksums)); /* XXX: update_server_info() should be called from the 64ms timer, and deal