aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc')
-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;
}