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 830aa4355c12d913250cbe3b608f5f63a781b169..d842273a80d7a6fb9e82c91ba673efabddc270d2 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)