aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/pkg-build.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index 5b91ec3..94d4a4d 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -1675,7 +1675,7 @@ namespace bpkg
// satisfy all the constraints. Thus the available package check is
// postponed until the package disfiguring.
//
- bool keep_out (o.keep_out () && sp->external ());
+ bool keep_out (o.keep_out () && sp != nullptr && sp->external ());
// Finally add this package to the list.
//