]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed isSameFile()
authorYann Collet <cyan@fb.com>
Thu, 17 Oct 2019 21:31:42 +0000 (14:31 -0700)
committerYann Collet <cyan@fb.com>
Thu, 17 Oct 2019 21:31:42 +0000 (14:31 -0700)
programs/util.c

index 321da066a1e84690470bc23432fe7728a608206f..dbdd1cee42a06e285ebf07fd68bdad3ab5381ad6 100644 (file)
@@ -114,7 +114,7 @@ int UTIL_isSameFile(const char* fName1, const char* fName2)
      *        inode does not work on Windows, even with a posix layer, like msys2.
      *        The following work-around is limited to detecting exact name repetition only,
      *        aka `filename` is considered different from `subdir/../filename` */
-    return !strcmp(file1, file2);
+    return !strcmp(fName1, fName2);
 #else
     {   stat_t file1Stat;
         stat_t file2Stat;