From: Yu Watanabe Date: Sun, 12 Nov 2017 13:25:58 +0000 (+0100) Subject: core/mount: fstype may be NULL X-Git-Tag: v236~236^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7186%2Fhead;p=thirdparty%2Fsystemd.git core/mount: fstype may be NULL --- 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;