From deed695faa0fcb9b8cbd21c5952097179f1bd427 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Wed, 7 May 2025 12:17:01 +0200 Subject: [PATCH] shared: dissect-image: use argument comment name label --- src/shared/dissect-image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 7d04e23cd2..30a8dec036 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -669,7 +669,7 @@ static int compare_arch(Architecture a, Architecture b) { return 0; } -static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, const char *name) { +static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, const char *label) { assert(d < _PARTITION_DESIGNATOR_MAX); if (d < 0) /* For unspecified designators we have no filter expression */ @@ -678,7 +678,7 @@ static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, if (!filter || !filter->pattern[d]) return true; - return fnmatch(filter->pattern[d], strempty(name), FNM_NOESCAPE) == 0; + return fnmatch(filter->pattern[d], strempty(label), FNM_NOESCAPE) == 0; } static int dissect_image(