less broken file_paths_equal for linux

master
insofaras 2016-02-24 16:56:35 +00:00
parent d676f5f0b8
commit 6f7d4f5a75
1 changed files with 6 additions and 6 deletions

View File

@ -373,13 +373,13 @@ Sys_File_Paths_Equal_Sig(system_file_paths_equal){
b32 result = 0;
char* real_a = realpath(path_a, NULL);
char* real_b = realpath(path_b, NULL);
if(real_a && real_b){
result = strcmp(real_a, real_b);
if(real_a){
char* real_b = realpath(path_b, NULL);
if(real_b){
result = strcmp(real_a, real_b) == 0;
free(real_b);
}
free(real_a);
free(real_b);
}
return result;