mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-27 10:28:18 +00:00
fixed goto problem with gcc - was jumping over an (unused) var decl
This was SVN commit r535.
This commit is contained in:
@@ -129,6 +129,8 @@ static int path_validate(const uint line, const char* const path)
|
||||
const char* msg = 0; // error occurred <==> != 0
|
||||
int err = -1; // pass error code to caller
|
||||
|
||||
int c = 0, last_c;
|
||||
|
||||
// disallow absolute path for safety, in case of *nix systems.
|
||||
if(path[0] == '/')
|
||||
{
|
||||
@@ -136,8 +138,6 @@ static int path_validate(const uint line, const char* const path)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
int c = 0, last_c;
|
||||
|
||||
// scan each char in path string; count length.
|
||||
for(;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user