diff options
author | Bart Massey <bart@cs.pdx.edu> | 2008-03-09 11:31:09 -0700 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2008-03-09 11:31:09 -0700 |
commit | d2012e06e0d0ef063f07f7b1a2f9d1aa93e0c239 (patch) | |
tree | 315cb0dda405e76eb3fd411fb32ef70ec9b8489d | |
parent | a2e6aa9e9192eea41fcfd633e6b66cc4acf77c51 (diff) |
added some gratuitous but harmless image pointer zeroing at the suggestion of Vincent Torri
-rw-r--r-- | image/xcb_image.c | 5 |
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; |