aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-09-06 16:26:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-09-06 16:26:21 +0200
commit7ab5526b3b669291b1a06b1d9c9cf651908a3457 (patch)
treebcdebbd8c68bfa31dfd6372f946dfedf08fdf35a /libbuild2
parent7c906455c62d4d6443ec3676befecde165c0a3fb (diff)
Don't crash if config.report.variable names undefined variable
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/file.cxx4
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")
{