Added short-circuit for cr_file_match_file

This commit is contained in:
Snaipe 2015-09-16 02:08:06 +02:00
parent 548a3d6b14
commit 29dcad096b

View file

@ -24,6 +24,9 @@ int cr_file_match_str(FILE* f, const char *str) {
}
int cr_file_match_file(FILE* f, FILE* ref) {
if (f == ref)
return true;
char buf1[512];
char buf2[512];