1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 01:18:00 +00:00

Fix an unused variable.

Enthusiastic copy-paste: in commit 17c57e1078 I added the same
precautionary call to ensure_handlewaits_tree_exists() everywhere,
even in functions that didn't actually need to use the tree.
This commit is contained in:
Simon Tatham 2021-05-27 09:47:33 +01:00
parent 9851d37ccb
commit 9f4bd6c552

View File

@ -129,7 +129,6 @@ void handle_wait_activate(HandleWaitList *hwl, int index)
{
struct HandleWaitListInner *hwli =
container_of(hwl, struct HandleWaitListInner, hwl);
tree234 *t = ensure_handlewaits_tree_exists();
assert(0 <= index);
assert(index < hwli->hwl.nhandles);
HandleWait *hw = hwli->hws[index];