about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-24T19·57+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-03-01T15·06+0100
commit1c94524458fda335739b163a76aedeb7bcc5f43a (patch)
treee4afef00a8468b01346ca5e894603cadb300a467 /src/libstore
parent6fe13e6aba771452e2637d9a8102569c1007d919 (diff)
Fix an uninitialised variable
The variable ‘useChroot’ was not initialised properly.  This caused
random failures if using the build hook.  Seen on Mac OS X 10.7 with Clang.
Thanks to KolibriFX for finding this :-)
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 138c40070b40..4c464d17c157 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -837,6 +837,7 @@ private:
 
 DerivationGoal::DerivationGoal(const Path & drvPath, Worker & worker)
     : Goal(worker)
+    , useChroot(false)
 {
     this->drvPath = drvPath;
     state = &DerivationGoal::init;