Merge pull request #3411 from RedSoxFan/fix-brace-detect-seeking

config: do not reset pos when braces found
This commit is contained in:
Ian Fan 2019-01-12 01:25:44 +00:00 committed by GitHub
commit d256182f49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -613,7 +613,9 @@ static int detect_brace(FILE *file) {
} }
} }
free(line); free(line);
if (ret == 0) {
fseek(file, pos, SEEK_SET); fseek(file, pos, SEEK_SET);
}
return ret; return ret;
} }