]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/specifier.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / shared / specifier.c
index cd651768bd80725c11e4bead8c942cca370f890d..05f5b28bb648d0a9eb2d1bfe49679cbe121d1260 100644 (file)
@@ -188,7 +188,7 @@ int specifier_machine_id(char specifier, const void *data, const char *root, con
         assert(ret);
 
         if (root) {
-                _cleanup_close_ int fd = -1;
+                _cleanup_close_ int fd = -EBADF;
 
                 fd = chase_symlinks_and_open("/etc/machine-id", root, CHASE_PREFIX_ROOT, O_RDONLY|O_CLOEXEC|O_NOCTTY, NULL);
                 if (fd < 0)