]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/partition/makefs.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / partition / makefs.c
index 9ffdcb6db85eca03288e65e382177e076b9fa837..3f54bbb0da0a9a2a0739e0295f0f3185616705f1 100644 (file)
@@ -19,7 +19,7 @@
 
 static int run(int argc, char *argv[]) {
         _cleanup_free_ char *device = NULL, *fstype = NULL, *detected = NULL;
-        _cleanup_close_ int lock_fd = -1;
+        _cleanup_close_ int lock_fd = -EBADF;
         sd_id128_t uuid;
         struct stat st;
         int r;