summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2008-03-09 11:31:09 -0700
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:03:54 +0900
commit33704890ddca85d6ca3453d234481a83920b892b (patch)
tree07e05b3b36250ba823bcfabc6255c1381a8af2d4
parentb3fade06934526c44fd3ecb3501e2f9797ede0df (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;