]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/sysupdate/sysupdate-resource.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / sysupdate / sysupdate-resource.c
index 2814fdb6fa307a77eb52c602f3e3cb2f76bbc041..56ce9b31cf50f13ac28298a43c878ecb735219a5 100644 (file)
@@ -563,7 +563,7 @@ int resource_resolve_path(
                         d = orig_root_stats.st_rdev;
 
         } else if (rr->type == RESOURCE_PARTITION) {
-                _cleanup_close_ int fd = -1, real_fd = -1;
+                _cleanup_close_ int fd = -EBADF, real_fd = -EBADF;
                 _cleanup_free_ char *resolved = NULL;
                 struct stat st;