aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/pkgconfig.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-21 13:39:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-21 13:40:39 +0200
commit63e2c029940ce8d2af9bfe5452efe7e695b674ee (patch)
tree3f5191f5fee0f790a4f92e50232f94086de6baa5 /libbuild2/cc/pkgconfig.cxx
parent1acb42397f86adeec1a8ec63f311f1d4221ac025 (diff)
Skip NULL entries in BMI's prerequisite_targets when looking for source
Fixes GitHub issue #169.
Diffstat (limited to 'libbuild2/cc/pkgconfig.cxx')
-rw-r--r--libbuild2/cc/pkgconfig.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 151473d..1b200b2 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -1838,7 +1838,7 @@ namespace build2
const target* mt (nullptr);
for (const target* t: pt->prerequisite_targets[a])
{
- if ((mt = t->is_a (*x_mod)))
+ if (t != nullptr && (mt = t->is_a (*x_mod)))
break;
}