shutdown: don't compare pointers with 0

This commit is contained in:
Lennart Poettering
2020-09-23 18:33:48 +02:00
parent 4534b32c73
commit 1a269c4ee3
+2 -2
View File
@@ -474,11 +474,11 @@ static int delete_dm(dev_t devnum) {
}
static int delete_md(MountPoint *m) {
_cleanup_close_ int fd = -1;
assert(m);
assert(major(m->devnum) != 0);
assert(m->path != 0);
assert(m->path);
fd = open(m->path, O_RDONLY|O_CLOEXEC|O_EXCL);
if (fd < 0)