From 7ab5526b3b669291b1a06b1d9c9cf651908a3457 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 Sep 2023 16:26:21 +0200 Subject: Don't crash if config.report.variable names undefined variable --- libbuild2/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2') 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") { -- cgit v1.1