From 489ca12bd34bbc8503d807b77ad7439ae256dca7 Mon Sep 17 00:00:00 2001 From: Alam Arias Date: Mon, 4 Mar 2019 20:09:20 -0500 Subject: [PATCH] =?UTF-8?q?Avoid=20=E2=80=98ncs=E2=80=99=20being=20used=20?= =?UTF-8?q?uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/g_game.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 04897896..e3a1f3cd 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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);