Commit 1f05facc authored by Lev Walkin's avatar Lev Walkin

ignore garbage in the tests directory

parent 09be69c0
......@@ -98,7 +98,7 @@ main(int ac, char **av) {
filename = dp->d_name;
#endif /* _WIN32 */
len = strlen(filename);
if(len <= 5 || strcmp(filename + len - 5, ".asn1"))
if(len <= 5 || !isdigit(filename[0]) || strcmp(filename + len - 5, ".asn1"))
continue;
ret = check(filename, parser_flags, fixer_flags);
if(ret) {
......
Markdown is supported
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