From 68a27c5bca208337f5749fe1959ac21c062b77fb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 Nov 2023 12:17:31 +0200 Subject: Search in src for existing prerequisites with unspecified out --- libbuild2/cc/compile-rule.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/cc/compile-rule.cxx') diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index bbdc851..3b37cad 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -6262,9 +6262,9 @@ namespace build2 // target (which means the name can only be specified on the // target itself, not target type/pattern-spec). // - const target* t (p.search_existing ()); - const string* n (t != nullptr - ? cast_null (t->vars[c_module_name]) + const target* mt (p.search_existing ()); + const string* n (mt != nullptr + ? cast_null (mt->vars[c_module_name]) : nullptr); if (n != nullptr) { -- cgit v1.1