summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/julia.c3
1 files changed, 3 insertions, 0 deletions
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++)
{