nested-client: Exit if we fail to create the nested client struct

dev
Kristian Høgsberg 11 years ago
parent b24d590e8f
commit f1144dd0dc
  1. 4
      clients/nested-client.c

@ -347,10 +347,12 @@ main(int argc, char **argv)
if (getenv("WAYLAND_SOCKET") == NULL) { if (getenv("WAYLAND_SOCKET") == NULL) {
fprintf(stderr, fprintf(stderr,
"must be run by nested, don't run standalone\n"); "must be run by nested, don't run standalone\n");
return -1; return EXIT_FAILURE;
} }
client = nested_client_create(); client = nested_client_create();
if (client == NULL)
return EXIT_FAILURE;
while (ret != -1) while (ret != -1)
ret = wl_display_dispatch(client->display); ret = wl_display_dispatch(client->display);

Loading…
Cancel
Save