From a994d7c050898ad13d509871d5ea353a1da2d3da Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 17 Nov 2025 21:59:10 +0100 Subject: [PATCH] G_DoPlayDemo: fix maybe unitialized warning in this case this wouldve been fine, tho variables using the cleanup macro should always be initzialized for safety --- src/g_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_demo.c b/src/g_demo.c index 5e6f20a6d..c670f69cd 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -2536,7 +2536,7 @@ void G_DoPlayDemo(char *defdemoname) UINT8 i, p; lumpnum_t l; char skin[17], color[17], *n; - CLEANUP(Z_Pfree) char *pdemoname; + CLEANUP(Z_Pfree) char *pdemoname = NULL; UINT8 version, subversion; UINT32 randseed; char msg[1024];