fixed goto problem with gcc - was jumping over an (unused) var decl

This was SVN commit r535.
This commit is contained in:
janwas
2004-06-18 14:59:50 +00:00
parent 4258ba245d
commit 38bfabeb38
+2 -2
View File
@@ -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(;;)
{