diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-11-12 14:25:58 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-12 14:27:25 +0100 |
commit | 74b1731c756f2c8c9eb9577465250eb22f697506 (patch) | |
tree | fdec317144e34ff98d301f683d2af28234efcded /src | |
parent | 17b6f896b49a4c6044f5e803e19d3a427f7f615d (diff) | |
download | systemd-74b1731c756f2c8c9eb9577465250eb22f697506.tar.gz |
core/mount: fstype may be NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/core/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 214b46f670..e2c480a51d 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; |