ECC-539: refactoring

This commit is contained in:
Shahram Najm 2021-01-25 13:59:03 +00:00
parent deab563bac
commit fc557bba28
1 changed files with 2 additions and 1 deletions

View File

@ -1293,9 +1293,10 @@ static int filenames_equal(const char * f1, const char * f2)
{ {
char resolved1[8192] = {0,}; char resolved1[8192] = {0,};
char resolved2[8192] = {0,}; char resolved2[8192] = {0,};
int eq = 0;
realpath(f1, resolved1); realpath(f1, resolved1);
realpath(f2, resolved2); realpath(f2, resolved2);
int eq = (strcmp(resolved1, resolved2)==0); eq = (strcmp(resolved1, resolved2)==0);
return eq; return eq;
} }