aboutsummaryrefslogtreecommitdiff
path: root/src/resolve-system-dependencies/resolve-system-dependencies.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve-system-dependencies/resolve-system-dependencies.cc')
-rw-r--r--src/resolve-system-dependencies/resolve-system-dependencies.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve-system-dependencies/resolve-system-dependencies.cc b/src/resolve-system-dependencies/resolve-system-dependencies.cc
index 424c789d8..2c4b06791 100644
--- a/src/resolve-system-dependencies/resolve-system-dependencies.cc
+++ b/src/resolve-system-dependencies/resolve-system-dependencies.cc
@@ -30,7 +30,7 @@ std::set<std::string> readCacheFile(const Path & file)
std::set<std::string> runResolver(const Path & filename)
{
- AutoCloseFD fd = open(filename.c_str(), O_RDONLY);
+ AutoCloseFD fd{open(filename.c_str(), O_RDONLY)};
if (!fd)
throw SysError("opening '%s'", filename);