From 01fe759b58fbde7f8c7391122421dd08c754dc51 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jul 2016 12:12:08 +0200 Subject: Fix bug in save_commented logic --- build2/config/operation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/config') 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; -- cgit v1.1