diff --git a/tests/viewporter-test.c b/tests/viewporter-test.c index 95fb9b46..f9b19d9e 100644 --- a/tests/viewporter-test.c +++ b/tests/viewporter-test.c @@ -41,10 +41,7 @@ get_viewporter(struct client *client) { struct global *g; struct global *global_wpr = NULL; - static struct wp_viewporter *wpr; - - if (wpr) - return wpr; + struct wp_viewporter *wpr; wl_list_for_each(g, &client->global_list, link) { if (strcmp(g->interface, wp_viewporter_interface.name))