From fe7c4f724e617b40454fecad25655ebf27807045 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 27 Jan 2025 23:52:59 +0800 Subject: [PATCH] Disk (BSD): silence compiler warnings --- src/detection/disk/disk_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/disk/disk_bsd.c b/src/detection/disk/disk_bsd.c index 3ad7e745b..b3ddf2e4e 100644 --- a/src/detection/disk/disk_bsd.c +++ b/src/detection/disk/disk_bsd.c @@ -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;