shared: dissect-image: use argument comment name label

This commit is contained in:
Jelle van der Waa
2025-05-14 11:15:45 +02:00
parent b52f095e9a
commit deed695faa
+2 -2
View File
@@ -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(