summaryrefslogtreecommitdiff
path: root/clients/flower.c
diff options
context:
space:
mode:
authorYuval Fledel <yuvalfl@gmail.com>2010-11-22 21:34:19 +0200
committerKristian Høgsberg <krh@bitplanet.net>2010-11-22 15:19:43 -0500
commite9f5e36730e8dfc703e90b1382ffd0dac6310a99 (patch)
tree8e9a07e8f33b3257b04592a69f63e3be19d48ce8 /clients/flower.c
parent91b5999ce4a72aadec0aef42121045ff78e1f0df (diff)
Make clients exit orderly when there is no connection
Diffstat (limited to 'clients/flower.c')
-rw-r--r--clients/flower.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/flower.c b/clients/flower.c
index 9054c0f..b919cf5 100644
--- a/clients/flower.c
+++ b/clients/flower.c
@@ -124,6 +124,10 @@ int main(int argc, char *argv[])
struct display *d;
d = display_create(&argc, &argv, NULL);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
flower.x = 512;
flower.y = 384;