projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24d590
)
nested-client: Exit if we fail to create the nested client struct
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 9 Oct 2013 20:25:58 +0000
(13:25 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 10 Oct 2013 23:50:18 +0000
(16:50 -0700)
clients/nested-client.c
patch
|
blob
|
history
diff --git
a/clients/nested-client.c
b/clients/nested-client.c
index
360d00e
..
1161a99
100644
(file)
--- a/
clients/nested-client.c
+++ b/
clients/nested-client.c
@@
-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);