Avoid ‘ncs’ being used uninitialized
This commit is contained in:
1 parent
3a4ed07e02
commit
489ca12bd3
1 file changed
+6
-4
+6
-4
@@ -6294,11 +6294,13 @@ static void G_LoadDemoExtraFiles(UINT8 **pp)
|
||||
else
|
||||
ncs = findfile(filename, md5sum, false);
|
||||
|
||||
if (toomany || ncs != FS_FOUND)
|
||||
if (toomany)
|
||||
{
|
||||
if (toomany)
|
||||
CONS_Printf("Too many files loaded\n");
|
||||
else if (ncs == FS_NOTFOUND)
|
||||
CONS_Printf("Too many files loaded\n");
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user