diff options
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r-- | build2/algorithm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index 6b28232..8dc5621 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -494,7 +494,7 @@ namespace build2 } } - if (pt->is_a (tt)) + if (r == nullptr && pt->is_a (tt)) r = pt; } |