From 3fcf2a2a39b128d530a32604b47b4707fc18ca7a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 26 Aug 2024 12:18:37 +0200 Subject: repart: Use streq_ptr() in one more place --- src/partition/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/partition/repart.c') diff --git a/src/partition/repart.c b/src/partition/repart.c index 309c2d51c7..bca9f28372 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -5163,7 +5163,7 @@ static int finalize_extra_mkfs_options(const Partition *p, const char *root, cha if (partition_needs_populate(p) && root && streq(p->format, "btrfs")) { STRV_FOREACH(subvol, p->subvolumes) { - if (p->default_subvolume && streq(*subvol, p->default_subvolume)) + if (streq_ptr(*subvol, p->default_subvolume)) continue; r = strv_extend_many(&sv, "--subvol", *subvol); -- cgit v1.2.3