summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2008-03-09 11:31:09 -0700
committerBart Massey <bart@cs.pdx.edu>2008-03-09 11:31:09 -0700
commitd2012e06e0d0ef063f07f7b1a2f9d1aa93e0c239 (patch)
tree315cb0dda405e76eb3fd411fb32ef70ec9b8489d
parenta2e6aa9e9192eea41fcfd633e6b66cc4acf77c51 (diff)
added some gratuitous but harmless image pointer zeroing at the suggestion of Vincent Torri
-rw-r--r--image/xcb_image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/image/xcb_image.c b/image/xcb_image.c
index 17ea59c..ee374cc 100644
--- a/image/xcb_image.c
+++ b/image/xcb_image.c
@@ -263,8 +263,11 @@ xcb_image_create (uint16_t width,
* bytes == ~0 we just return the image structure and let
* the caller deal with getting the allocation right.
*/
- if (!base && !data && bytes == ~0)
+ if (!base && !data && bytes == ~0) {
+ image->base = 0;
+ image->data = 0;
return image;
+ }
if (!base && data && bytes == 0)
bytes = image->size;
image->base = base;