summaryrefslogtreecommitdiff
path: root/clients/gears.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/gears.c')
-rw-r--r--clients/gears.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/gears.c b/clients/gears.c
index 17536cb2..7d3c3100 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -413,6 +413,10 @@ int main(int argc, char *argv[])
struct gears *gears;
d = display_create(&argc, &argv, NULL);
+ if (d == NULL) {
+ fprintf(stderr, "failed to create display: %m\n");
+ return -1;
+ }
gears = gears_create(d);
display_run(d);