summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-memfd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-10 17:33:44 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-10 17:34:14 +0200
commita7c54c8c1fc4101e784c101e680975f2143381ce (patch)
tree5e099806f62b4fa5f5a670970e632ccf6b7ccf37 /src/libsystemd-bus/sd-memfd.c
parentc2384970ff604e6341879bc965305b84533cdebf (diff)
bus: extend memfd test
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;