diff options
Diffstat (limited to 'build2/config')
-rw-r--r-- | build2/config/utility.cxx | 2 | ||||
-rw-r--r-- | build2/config/utility.txx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/config/utility.cxx b/build2/config/utility.cxx index 1c80d13..08795d7 100644 --- a/build2/config/utility.cxx +++ b/build2/config/utility.cxx @@ -61,7 +61,7 @@ namespace build2 auto l (r[var]); return l.defined () ? l - : lookup (r.assign (var), r); // NULL. + : lookup (r.assign (var), var, r); // NULL. } bool diff --git a/build2/config/utility.txx b/build2/config/utility.txx index fc21710..4336955 100644 --- a/build2/config/utility.txx +++ b/build2/config/utility.txx @@ -39,7 +39,7 @@ namespace build2 v.extra = true; // Default value flag. n = (save_flags & save_commented) == 0; // Absence means default. - l = lookup (v, root); + l = lookup (v, var, root); org = make_pair (l, 1); // Lookup depth is 1 since it's in root.vars. } // Treat an inherited value that was set to default as new. |