Added short-circuit for cr_file_match_file
This commit is contained in:
parent
548a3d6b14
commit
29dcad096b
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue