projects
/
free-sw
/
xcb
/
demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1467b98
)
julia: add a check for xcb image get reply
author
Julien Danjou
<julien@danjou.info>
Mon, 15 Sep 2008 08:40:32 +0000
(10:40 +0200)
committer
Julien Danjou
<julien@danjou.info>
Mon, 15 Sep 2008 08:42:37 +0000
(10:42 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
tests/julia.c
patch
|
blob
|
history
diff --git
a/tests/julia.c
b/tests/julia.c
index
133389c
..
eec6de5
100644
(file)
--- 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++)
{