diff options
author | Yuval Fledel <yuvalfl@gmail.com> | 2010-11-22 21:34:19 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-11-22 15:19:43 -0500 |
commit | e9f5e36730e8dfc703e90b1382ffd0dac6310a99 (patch) | |
tree | 8e9a07e8f33b3257b04592a69f63e3be19d48ce8 /clients/smoke.c | |
parent | 91b5999ce4a72aadec0aef42121045ff78e1f0df (diff) | |
download | weston-e9f5e36730e8dfc703e90b1382ffd0dac6310a99.tar.gz weston-e9f5e36730e8dfc703e90b1382ffd0dac6310a99.tar.bz2 weston-e9f5e36730e8dfc703e90b1382ffd0dac6310a99.zip |
Make clients exit orderly when there is no connection
Diffstat (limited to 'clients/smoke.c')
-rw-r--r-- | clients/smoke.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/smoke.c b/clients/smoke.c index 246e3476..43226adf 100644 --- a/clients/smoke.c +++ b/clients/smoke.c @@ -267,6 +267,10 @@ int main(int argc, char *argv[]) int size; d = display_create(&argc, &argv, NULL); + if (d == NULL) { + fprintf(stderr, "failed to create display: %m\n"); + return -1; + } smoke.x = 200; smoke.y = 200; |