because reasons (undefined behavior)

This commit is contained in:
Björn Linse
2020-10-10 15:33:53 +02:00
parent 0b615dae07
commit 88e6e7e08c
2 changed files with 3 additions and 5 deletions

View File

@@ -637,13 +637,10 @@ int update_screen(int type)
continue;
}
bool active;
if (p->redraw_end != LUA_NOREF) {
FIXED_TEMP_ARRAY(args, 1);
args.items[0] = INTEGER_OBJ(display_tick);
active = provider_invoke(p->ns_id, "end", p->redraw_end, args, true);
} else {
active = true;
provider_invoke(p->ns_id, "end", p->redraw_end, args, true);
}
}
kvi_destroy(providers);