]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: fstype may be NULL 7186/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Nov 2017 13:25:58 +0000 (14:25 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 12 Nov 2017 13:27:25 +0000 (14:27 +0100)
src/core/mount.c

index 214b46f6703e7377cc307ff14e8e699e8c9144e4..e2c480a51d97721fcbbd497329065347e549469f 100644 (file)
@@ -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;