diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-06 16:26:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-06 16:26:21 +0200 |
commit | 7ab5526b3b669291b1a06b1d9c9cf651908a3457 (patch) | |
tree | bcdebbd8c68bfa31dfd6372f946dfedf08fdf35a | |
parent | 7c906455c62d4d6443ec3676befecde165c0a3fb (diff) |
Don't crash if config.report.variable names undefined variable
-rw-r--r-- | libbuild2/file.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 87658dd..2a09aea 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -1716,10 +1716,10 @@ namespace build2 dr << "\n "; - if (const value& v = *l) + if (l) { storage.clear (); - auto ns (reverse (v, storage, true /* reduce */)); + auto ns (reverse (*l, storage, true /* reduce */)); if (f == "multiline") { |