nested-client: Exit if we fail to create the nested client struct
This commit is contained in:
parent
b24d590e8f
commit
f1144dd0dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue