From f4827cfcc19f90a82ff92ee5bd38ae9ca52dacae Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 15 Sep 2008 10:40:32 +0200 Subject: julia: add a check for xcb image get reply Signed-off-by: Julien Danjou --- tests/julia.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include +#include #include #include @@ -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++) { -- cgit v1.2.3