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 :-)
This commit is contained in:
Eelco Dolstra 2012-02-24 20:57:54 +01:00
parent 6fe13e6aba
commit 1c94524458
1 changed files with 1 additions and 0 deletions

View File

@ -837,6 +837,7 @@ private:
DerivationGoal::DerivationGoal(const Path & drvPath, Worker & worker)
: Goal(worker)
, useChroot(false)
{
this->drvPath = drvPath;
state = &DerivationGoal::init;