From 79caa757c987e228b84fa8d1e0419890db4a5ed3 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Thu, 21 Jul 2011 16:35:38 +0300 Subject: [PATCH] simple-shm: assert display conection Signed-off-by: Tiago Vignatti --- clients/simple-shm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/simple-shm.c b/clients/simple-shm.c index d8a57728..56742fac 100644 --- a/clients/simple-shm.c +++ b/clients/simple-shm.c @@ -198,6 +198,7 @@ create_display(void) display = malloc(sizeof *display); display->display = wl_display_connect(NULL); + assert(display->display); wl_display_add_global_listener(display->display, display_handle_global, display);