summaryrefslogtreecommitdiffstats
path: root/src/pstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/pstore')
-rw-r--r--src/pstore/pstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pstore/pstore.c b/src/pstore/pstore.c
index 6c3d577507..306540650f 100644
--- a/src/pstore/pstore.c
+++ b/src/pstore/pstore.c
@@ -174,7 +174,7 @@ static int move_file(PStoreEntry *pe, const char *subdir1, const char *subdir2)
static int append_dmesg(PStoreEntry *pe, const char *subdir1, const char *subdir2) {
/* Append dmesg chunk to end, create if needed */
_cleanup_free_ char *ofd_path = NULL;
- _cleanup_close_ int ofd = -1;
+ _cleanup_close_ int ofd = -EBADF;
ssize_t wr;
assert(pe);