[input] initialize ncinput all the way through

This commit is contained in:
nick black 2021-09-08 03:47:16 -04:00
parent 4a9f62f131
commit 5527fabdf5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -551,6 +551,7 @@ handle_queued_input(ncinputlayer* nc, ncinput* ni,
if(nc->inputbuf_occupied == 0){ if(nc->inputbuf_occupied == 0){
return -1; return -1;
} }
memset(ni, 0, sizeof(*ni));
int r = pop_input_keypress(nc); int r = pop_input_keypress(nc);
ret = handle_getc(nc, r, ni, leftmargin, topmargin); ret = handle_getc(nc, r, ni, leftmargin, topmargin);
if(ret != (uint32_t)-1){ if(ret != (uint32_t)-1){