about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 8da1e9946f..fb3b51c4fc 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1273,7 +1273,6 @@ void DerivationGoal::computeClosure()
             if (!recursive) {
                 /* The output path should be a regular file without
                    execute permission. */
-                struct stat st;
                 if (!S_ISREG(st.st_mode) || (st.st_mode & S_IXUSR) != 0)
                     throw Error(
                         format("output path `%1% should be a non-executable regular file")