From 74b1731c756f2c8c9eb9577465250eb22f697506 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 12 Nov 2017 14:25:58 +0100 Subject: [PATCH] core/mount: fstype may be NULL --- src/core/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;