diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-14 06:15:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-14 06:15:57 +0200 |
commit | cedc661686dad6d82b0a96ea1490d36bc5ffee63 (patch) | |
tree | 362614fa115c29ccd42e888ed380251ffd163cf9 /libbuild2/config/utility.txx | |
parent | 38db461e03e949916221f7ae99b06751a3d05cce (diff) |
Tighten value::extra usage in config module
Specifically, only values marked with 1 are treated as default leaving
other values for use for other purposes.
Diffstat (limited to 'libbuild2/config/utility.txx')
-rw-r--r-- | libbuild2/config/utility.txx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/config/utility.txx b/libbuild2/config/utility.txx index 0362d6a..71e41fd 100644 --- a/libbuild2/config/utility.txx +++ b/libbuild2/config/utility.txx @@ -66,7 +66,7 @@ namespace build2 } // Treat an inherited value that was set to default as new. // - else if (l->extra) + else if (l->extra == 1) n = (sflags & save_default_commented) == 0; // Absence means default. if (var.overrides != nullptr) |