From: Vinson Lee Date: Mon, 23 Nov 2009 06:52:59 +0000 (-0500) Subject: mesa: Initialize variable in _mesa_get_texel_fetch_func. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67125c7f9aa141a7948ebb915ece9d991bb6ff19;p=mesa.git mesa: Initialize variable in _mesa_get_texel_fetch_func. --- diff --git a/src/mesa/main/texfetch.c b/src/mesa/main/texfetch.c index f4f2be48c37..b37039429f4 100644 --- a/src/mesa/main/texfetch.c +++ b/src/mesa/main/texfetch.c @@ -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++) {