summaryrefslogtreecommitdiffstats
path: root/src/basic/fileio.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-30 21:06:16 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-02 13:22:28 +0100
commit603772810cb10125ae19a6a69e5faf53d927cb96 (patch)
tree336b1b771154dbc16c48740f95bf434ed11fb130 /src/basic/fileio.c
parentfileio: include ctype.h with <> rather than "" (diff)
downloadsystemd-603772810cb10125ae19a6a69e5faf53d927cb96.tar.xz
systemd-603772810cb10125ae19a6a69e5faf53d927cb96.zip
fileio: remove unnecessary initialization
Diffstat (limited to 'src/basic/fileio.c')
-rw-r--r--src/basic/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index 41fa1f2bd1..d86ad58153 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -1478,7 +1478,7 @@ int open_tmpfile_linkable(const char *target, int flags, char **ret_path) {
}
int open_serialization_fd(const char *ident) {
- int fd = -1;
+ int fd;
fd = memfd_create(ident, MFD_CLOEXEC);
if (fd < 0) {