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/operation.cxx | |
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/operation.cxx')
-rw-r--r-- | libbuild2/config/operation.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/config/operation.cxx b/libbuild2/config/operation.cxx index ed98f90..5edb610 100644 --- a/libbuild2/config/operation.cxx +++ b/libbuild2/config/operation.cxx @@ -509,8 +509,8 @@ namespace build2 // Handle the save_default_commented flag. // - if ((org.first.defined () && org.first->extra) && // Default value. - org.first == ovr.first && // Not overriden. + if (org.first.defined () && org.first->extra == 1 && // Default. + org.first == ovr.first && // No override. (flags & save_default_commented) != 0) { os << first () << '#' << n << " =" << endl; |