summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@freedesktop.org>2004-12-27 21:52:17 +0000
committerAdam Jackson <ajax@freedesktop.org>2004-12-27 21:52:17 +0000
commitd9fcfa27976788365c2b7846e13d3081bb3aa9d1 (patch)
tree130bd6e30e4a2a910649088aabb77e944f5c0d5f /src
parent0983c9dd993a4cdabccc1ea3c5bc09a0f1ed507c (diff)
Bug #1859: Initialize 'size' before first use in intelTryReadPixels()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_pixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel.c b/src/mesa/drivers/dri/i915/intel_pixel.c
index 830aa4355c..d842273a80 100644
--- a/src/mesa/drivers/dri/i915/intel_pixel.c
+++ b/src/mesa/drivers/dri/i915/intel_pixel.c
@@ -145,7 +145,7 @@ intelTryReadPixels( GLcontext *ctx,
GLvoid *pixels )
{
intelContextPtr intel = INTEL_CONTEXT(ctx);
- GLint size;
+ GLint size = 0;
GLint pitch = pack->RowLength ? pack->RowLength : width;
if (INTEL_DEBUG & DEBUG_PIXEL)