[Xcb-commit] image
Bart Massey
bart at kemper.freedesktop.org
Sun Mar 9 11:31:13 PDT 2008
image/xcb_image.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 4aa37ac84080e004646109fc60d6e6d4f675ac9b
Author: Bart Massey <bart at cs.pdx.edu>
Date: Sun Mar 9 11:31:09 2008 -0700
added some gratuitous but harmless image pointer zeroing at the suggestion of Vincent Torri
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;
More information about the xcb-commit
mailing list