mirror of https://github.com/ecmwf/eccodes.git
ECC-539: refactoring
This commit is contained in:
parent
deab563bac
commit
fc557bba28
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue