less broken file_paths_equal for linux
This commit is contained in:
parent
d676f5f0b8
commit
6f7d4f5a75
|
@ -373,14 +373,14 @@ Sys_File_Paths_Equal_Sig(system_file_paths_equal){
|
|||
b32 result = 0;
|
||||
|
||||
char* real_a = realpath(path_a, NULL);
|
||||
if(real_a){
|
||||
char* real_b = realpath(path_b, NULL);
|
||||
|
||||
if(real_a && real_b){
|
||||
result = strcmp(real_a, real_b);
|
||||
|
||||
free(real_a);
|
||||
if(real_b){
|
||||
result = strcmp(real_a, real_b) == 0;
|
||||
free(real_b);
|
||||
}
|
||||
free(real_a);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue