Bug #1859: Initialize 'size' before first use in intelTryReadPixels()
authorAdam Jackson <ajax@freedesktop.org>
Mon, 27 Dec 2004 21:52:17 +0000 (21:52 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Mon, 27 Dec 2004 21:52:17 +0000 (21:52 +0000)
src/mesa/drivers/dri/i915/intel_pixel.c

index 830aa43..d842273 100644 (file)
@@ -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)