From: Adam Jackson Date: Mon, 27 Dec 2004 21:52:17 +0000 (+0000) Subject: Bug #1859: Initialize 'size' before first use in intelTryReadPixels() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9fcfa27976788365c2b7846e13d3081bb3aa9d1;p=mesa.git Bug #1859: Initialize 'size' before first use in intelTryReadPixels() --- 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)