From d9fcfa27976788365c2b7846e13d3081bb3aa9d1 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 27 Dec 2004 21:52:17 +0000 Subject: [PATCH] Bug #1859: Initialize 'size' before first use in intelTryReadPixels() --- src/mesa/drivers/dri/i915/intel_pixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2