From c0f29642a41d536f617e8eb5c259432b11299155 Mon Sep 17 00:00:00 2001 From: Johan Mattsson <39247600+mjunix@users.noreply.github.com> Date: Sat, 5 Feb 2022 13:49:12 +0100 Subject: [PATCH] Fix uninitialized variable --- code/renderergl2/tr_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderergl2/tr_backend.c b/code/renderergl2/tr_backend.c index df54528b..ba3e2abb 100644 --- a/code/renderergl2/tr_backend.c +++ b/code/renderergl2/tr_backend.c @@ -423,7 +423,7 @@ RB_RenderDrawSurfList ================== */ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) { - shader_t *shader, *oldShader; + shader_t *shader = NULL, *oldShader; int fogNum, oldFogNum; int entityNum, oldEntityNum; int dlighted, oldDlighted;