summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2004-12-27 21:52:17 +0000
committerAdam Jackson <[email protected]>2004-12-27 21:52:17 +0000
commitd9fcfa27976788365c2b7846e13d3081bb3aa9d1 (patch)
tree130bd6e30e4a2a910649088aabb77e944f5c0d5f /src/mesa/drivers/dri/i915
parent0983c9dd993a4cdabccc1ea3c5bc09a0f1ed507c (diff)
Bug #1859: Initialize 'size' before first use in intelTryReadPixels()
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-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 830aa4355c1..d842273a80d 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)