aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-21 12:12:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-21 12:12:08 +0200
commit01fe759b58fbde7f8c7391122421dd08c754dc51 (patch)
tree430efe4a032f1e34e4ef350e851062000e2f1947
parent141693278ef900655efae53990d084058b008a90 (diff)
Fix bug in save_commented logic
-rw-r--r--build2/config/operation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx
index c3868ab..767ca1a 100644
--- a/build2/config/operation.cxx
+++ b/build2/config/operation.cxx
@@ -255,8 +255,8 @@ namespace build2
// Handle the save_commented flag.
//
- if (org.first->extra && // Default value.
- org.first == ovr.first && // Not overriden.
+ if ((org.first.defined () && org.first->extra) && // Default value.
+ org.first == ovr.first && // Not overriden.
(sflags & save_commented) == save_commented)
{
ofs << '#' << n << " =" << endl;