fix uninitialized usage of output in P_LoadNodes_ZDBSP()

This commit is contained in:
Fabian Greffrath 2023-05-06 11:03:05 +02:00
parent af535939b9
commit 0fb24e322f

View File

@ -269,7 +269,7 @@ void P_LoadNodes_ZDBSP (int lump, boolean compressed)
{
byte *data;
unsigned int i;
byte *output;
byte *output = NULL;
unsigned int orgVerts, newVerts;
unsigned int numSubs, currSeg;
@ -496,7 +496,7 @@ void P_LoadNodes_ZDBSP (int lump, boolean compressed)
}
}
if (compressed)
if (compressed && output)
Z_Free(output);
else
W_CacheLumpNum(lump, PU_CACHE);