diff options
-rw-r--r-- | build2/config/operation.cxx | 4 |
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; |