Avoid ‘ncs’ being used uninitialized

This commit is contained in:
Alam Arias 2019-03-04 20:09:20 -05:00
parent 3a4ed07e02
commit 489ca12bd3

View file

@ -6294,11 +6294,13 @@ static void G_LoadDemoExtraFiles(UINT8 **pp)
else
ncs = findfile(filename, md5sum, false);
if (toomany || ncs != FS_FOUND)
{
if (toomany)
{
CONS_Printf("Too many files loaded\n");
else if (ncs == FS_NOTFOUND)
}
else if (ncs != FS_FOUND)
{
if (ncs == FS_NOTFOUND)
CONS_Printf("You do not have a copy of %s\n", filename);
else if (ncs == FS_MD5SUMBAD)
CONS_Printf("Checksum mismatch on %s\n", filename);