[PATCH 1/3] simple-shm: assert display conection

Tiago Vignatti tiago.vignatti at intel.com
Thu Jul 21 06:35:38 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 clients/simple-shm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/clients/simple-shm.c b/clients/simple-shm.c
index d8a5772..56742fa 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);
-- 
1.7.2.2



More information about the wayland-devel mailing list