mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 11:50:50 +00:00
Fix mixed declarations and code warning
This commit is contained in:
parent
b84d4a6bd2
commit
8d2d91a3bf
1 changed files with 2 additions and 3 deletions
|
@ -1143,6 +1143,8 @@ void D_SRB2Main(void)
|
|||
|
||||
{
|
||||
const char *userhome = D_Home(); //Alam: path to home
|
||||
FILE *tmpfile;
|
||||
char testfile[MAX_WADPATH];
|
||||
|
||||
if (!userhome)
|
||||
{
|
||||
|
@ -1192,9 +1194,6 @@ void D_SRB2Main(void)
|
|||
|
||||
// If config isn't writable, tons of behavior will be broken.
|
||||
// Fail loudly before things get confusing!
|
||||
FILE *tmpfile;
|
||||
char testfile[MAX_WADPATH];
|
||||
|
||||
snprintf(testfile, sizeof testfile, "%s" PATHSEP "file.tmp", srb2home);
|
||||
testfile[sizeof testfile - 1] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in a new issue