diff --git a/suppression/asan.supp b/suppression/asan.supp index 5d1c428..c71c510 100644 --- a/suppression/asan.supp +++ b/suppression/asan.supp @@ -1,3 +1,4 @@ leak:libheif.so.1 leak:libde265.so.0 leak:libx265.so.179 +leak:libfontconfig.so.1 \ No newline at end of file diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c index 4150238..69efda0 100644 --- a/tests/gdtest/gdtest.c +++ b/tests/gdtest/gdtest.c @@ -88,13 +88,13 @@ int gdTestIsDir(char *path) { return 0; } if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - return 0; - } else { return 1; + } else { + return 0; } #else struct stat st; - if (lstat(path, &st) != 0) + if (lstat(path, &st) == 0) if (S_ISDIR(st.st_mode)) return 1;