[Xcb-commit] tests

Julien Danjou jdanjou at kemper.freedesktop.org
Mon Sep 15 01:44:54 PDT 2008


 tests/julia.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f4827cfcc19f90a82ff92ee5bd38ae9ca52dacae
Author: Julien Danjou <julien at danjou.info>
Date:   Mon Sep 15 10:40:32 2008 +0200

    julia: add a check for xcb image get reply
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/tests/julia.c b/tests/julia.c
index 133389c..eec6de5 100644
--- a/tests/julia.c
+++ b/tests/julia.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include <string.h>
+#include <assert.h>
 
 #include <xcb/xcb.h>
 #include <xcb/shm.h>
@@ -109,6 +110,8 @@ draw_julia (Data *datap)
 		       0, 0, W_W, W_H,
 		       XCB_ALL_PLANES, datap->format);
   
+  assert(datap->image);
+
   for (i = 0 ; i < datap->image->width ; i++)
     for (j = 0 ; j < datap->image->height ; j++)
       {


More information about the xcb-commit mailing list