Skip to content

Commit

Permalink
Disk (BSD): silence compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Jan 27, 2025
1 parent abadcb9 commit fe7c4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detection/disk/disk_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)

for(struct statfs* fs = buf; fs < buf + size; ++fs)
{
if(__builtin_expect(options->folders.length, 0))
if(__builtin_expect(options->folders.length > 0, 0))
{
if(!ffDiskMatchMountpoint(options, fs->f_mntonname))
continue;
Expand Down

0 comments on commit fe7c4f7

Please sign in to comment.