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

This commit is contained in:
Kristian Høgsberg 2013-10-09 13:25:58 -07:00
parent b24d590e8f
commit f1144dd0dc
1 changed files with 3 additions and 1 deletions

View File

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