diff --git a/src/core/mount.c b/src/core/mount.c index 214b46f6703..e2c480a51d9 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -494,7 +494,7 @@ static int mount_add_default_dependencies(Mount *m) { return r; /* If this is a tmpfs mount then we have to unmount it before we try to deactivate swaps */ - if (streq(p->fstype, "tmpfs")) { + if (streq_ptr(p->fstype, "tmpfs")) { r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, SPECIAL_SWAP_TARGET, NULL, true, mask); if (r < 0) return r;