This caching is actually never hit. I tested by making the early return abort()
instead and all works just fine.
Remove the caching. The static variable will cause problems when we stop
fork()'ing for each test case.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
{
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))