summaryrefslogtreecommitdiffstats
path: root/src/eval_env.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-12-20 00:35:28 (GMT)
committerEvan Martin <martine@danga.com>2010-12-20 00:35:28 (GMT)
commite366323ed81f3177b0513c400d821359be53dc46 (patch)
tree34a9f7945eca06548cdabb7accaa1ca45bb930ac /src/eval_env.h
parentd196aa6a8030beaf8b9515ca4b025917275b2608 (diff)
downloadNinja-e366323ed81f3177b0513c400d821359be53dc46.zip
Ninja-e366323ed81f3177b0513c400d821359be53dc46.tar.gz
Ninja-e366323ed81f3177b0513c400d821359be53dc46.tar.bz2
initialize pointer
Diffstat (limited to 'src/eval_env.h')
-rw-r--r--src/eval_env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval_env.h b/src/eval_env.h
index cc61a38..517066d 100644
--- a/src/eval_env.h
+++ b/src/eval_env.h
@@ -12,6 +12,7 @@ struct Env {
// A standard scope, which contains a mapping of variables to values
// as well as a pointer to a parent scope.
struct BindingEnv : public Env {
+ BindingEnv() : parent_(NULL) {}
virtual string LookupVariable(const string& var) {
map<string, string>::iterator i = bindings_.find(var);
if (i != bindings_.end())