Skip to content
Snippets Groups Projects
Commit ba19b86e authored by John Hodge's avatar John Hodge
Browse files

Clean up config handling a little

parent 37e89ab2
No related merge requests found
......@@ -80,12 +80,12 @@ int Config_ParseFile(const char *Filename)
}
}
while( i --, isspace(line[i]) )
line[i] = 0;
// Trim trailing whitespace
while( i -- && isspace(line[i]) )
line[i] = '\0';
}
if( regexec(&regexp_empty, line, 1, matches, 0) == 0 )
if( line[0] == '\0' ) // regexec(&regexp_empty, line, 1, matches, 0) == 0 )
continue ;
if( RunRegex(&regexp_option, line, 3, matches, "Parsing configuration file") )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment