st/mesa: Silence uninitialized variable warning.

Fixes this GCC warning.
state_tracker/st_program.c: In function 'st_print_shaders':
state_tracker/st_program.c:735: warning: 'sh' may be used uninitialized in this function
This commit is contained in:
Vinson Lee
2010-10-28 06:08:19 -07:00
parent aa43176ebd
commit a54ab4960b

View File

@@ -744,6 +744,10 @@ st_print_shaders(struct gl_context *ctx)
case GL_FRAGMENT_SHADER:
sh = (i != 2) ? NULL : shProg[j]->Shaders[i];
break;
default:
assert(0);
sh = NULL;
break;
}
if (sh != NULL) {