mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
Avoid ‘ncs’ being used uninitialized
This commit is contained in:
parent
3a4ed07e02
commit
489ca12bd3
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue