Skip to content

Commit fe7c4f7

Browse files
committed
Disk (BSD): silence compiler warnings
1 parent abadcb9 commit fe7c4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/disk/disk_bsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)
143143

144144
for(struct statfs* fs = buf; fs < buf + size; ++fs)
145145
{
146-
if(__builtin_expect(options->folders.length, 0))
146+
if(__builtin_expect(options->folders.length > 0, 0))
147147
{
148148
if(!ffDiskMatchMountpoint(options, fs->f_mntonname))
149149
continue;

0 commit comments

Comments
 (0)