shithub: choc

Download patch

ref: 1b1c416763777f18fd454dfc4ebce45d78a567c6
parent: 134f7f798757e399c05820df5583c52e6f5faadc
author: Turo Lamminen <turol@iki.fi>
date: Tue Feb 4 08:27:16 EST 2020

doom: Reduce scope of variable deh_sub in GetGameName

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -676,10 +676,10 @@
 static char *GetGameName(const char *gamename)
 {
     size_t i;
-    const char *deh_sub;
     
     for (i=0; i<arrlen(banners); ++i)
     {
+        const char *deh_sub;
         // Has the banner been replaced?
 
         deh_sub = DEH_String(banners[i]);