From 2ee88b6041557beb517b100c3f608ebfc5eb725d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 10 Jun 2020 08:30:29 +0200 Subject: Fix bug in subscript of NULL values --- libbuild2/parser.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index e6a1c6a..db00633 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -6016,7 +6016,9 @@ namespace build2 // // Note that result may or may not point to result_data. // - if (result->type == nullptr) + if (result->null) + result_data = value (); + else if (result->type == nullptr) { const names& ns (result->as ()); -- cgit v1.1