From: Daan De Meyer Date: Mon, 26 Aug 2024 10:18:37 +0000 (+0200) Subject: repart: Use streq_ptr() in one more place X-Git-Tag: v257-rc1~624 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fcf2a2a39b128d530a32604b47b4707fc18ca7a;p=thirdparty%2Fsystemd.git repart: Use streq_ptr() in one more place --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 309c2d51c73..bca9f28372e 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);