summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-memfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-bus/sd-memfd.c')
-rw-r--r--src/libsystemd-bus/sd-memfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-memfd.c b/src/libsystemd-bus/sd-memfd.c
index 51b111e8b5..98a8e0893a 100644
--- a/src/libsystemd-bus/sd-memfd.c
+++ b/src/libsystemd-bus/sd-memfd.c
@@ -106,7 +106,7 @@ int sd_memfd_get_file(sd_memfd *m, FILE **f) {
if (!f)
return -EINVAL;
- if (!m->fd) {
+ if (!m->f) {
m->f = fdopen(m->fd, "r+");
if (!m->f)
return -errno;