diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-02-24 20:57:54 +0100 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-03-01 16:06:49 +0100 |
commit | 1c94524458fda335739b163a76aedeb7bcc5f43a (patch) | |
tree | e4afef00a8468b01346ca5e894603cadb300a467 | |
parent | 6fe13e6aba771452e2637d9a8102569c1007d919 (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 :-)
-rw-r--r-- | src/libstore/build.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 138c40070..4c464d17c 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; |