diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-30 12:17:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-12-03 16:48:07 +0200 |
commit | 68a27c5bca208337f5749fe1959ac21c062b77fb (patch) | |
tree | da96113dcb505bf56e03651d03aaba88c78aa077 /libbuild2/cc/compile-rule.cxx | |
parent | 01226d547c006d29731747c2e8c9df4f9312815e (diff) |
Search in src for existing prerequisites with unspecified out
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<string> (t->vars[c_module_name]) + const target* mt (p.search_existing ()); + const string* n (mt != nullptr + ? cast_null<string> (mt->vars[c_module_name]) : nullptr); if (n != nullptr) { |