From 1c94524458fda335739b163a76aedeb7bcc5f43a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Feb 2012 20:57:54 +0100 Subject: [PATCH] Fix an uninitialised variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 :-) --- src/libstore/build.cc | 1 + 1 file changed, 1 insertion(+) 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;