aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-14 14:08:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-14 14:08:54 +0200
commit89662f03d8dbc6f80334c7fdae9bc1a919c88dd0 (patch)
treed1bb041c29e9c1b71b096b5fc4db03b108fcaa34
parent5487be65a6f493968c0e997d93bcd5c2d87158ef (diff)
Fix bug in pkg-build --keep-out logic
-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.
//