Skip to content

Commit 5137a9e

Browse files
committed
Packages: fix file type check
1 parent f76981c commit 5137a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/packages/packages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ uint32_t ffPackagesGetNumElements(const char* dirname, bool isdir)
102102

103103
#ifndef __sun
104104
if(entry->d_type != DT_UNKNOWN && entry->d_type != DT_LNK)
105-
ok = entry->d_type == isdir ? DT_DIR : DT_REG;
105+
ok = entry->d_type == (isdir ? DT_DIR : DT_REG);
106106
else
107107
#endif
108108
{

0 commit comments

Comments
 (0)