mesa: Initialize variable in _mesa_get_texel_fetch_func.
authorVinson Lee <vlee@vmware.com>
Mon, 23 Nov 2009 06:52:59 +0000 (01:52 -0500)
committerVinson Lee <vlee@vmware.com>
Mon, 23 Nov 2009 06:52:59 +0000 (01:52 -0500)
src/mesa/main/texfetch.c

index f4f2be48c373f3c9c015ccd952b1764a627cac01..b37039429f497408937f52bfef5bebf3bb2c686d 100644 (file)
@@ -570,7 +570,7 @@ texfetch_funcs[MESA_FORMAT_COUNT] =
 static FetchTexelFuncF
 _mesa_get_texel_fetch_func(gl_format format, GLuint dims)
 {
-   FetchTexelFuncF f;
+   FetchTexelFuncF f = NULL;
    GLuint i;
    /* XXX replace loop with direct table lookup */
    for (i = 0; i < MESA_FORMAT_COUNT; i++) {