diff options
-rw-r--r-- | src/libsystemd-bus/sd-memfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-memfd.c b/src/libsystemd-bus/sd-memfd.c index 98a8e0893a..2712a26f66 100644 --- a/src/libsystemd-bus/sd-memfd.c +++ b/src/libsystemd-bus/sd-memfd.c @@ -43,7 +43,7 @@ int sd_memfd_new(sd_memfd **m) { return -EINVAL; kdbus = open("/dev/kdbus/control", O_RDWR|O_NOCTTY|O_CLOEXEC); - if (fd < 0) + if (kdbus < 0) return -errno; if (ioctl(kdbus, KDBUS_CMD_MEMFD_NEW, &fd) < 0) |