aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-07-21 22:12:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-07-29 14:42:55 +0300
commit6ca71ae60f2cefefe5fc0f9ebfdc5165cac1f0c1 (patch)
treefbe8ac443b52ab5bb8c8190795037ac649d35829
parent57d6cdd051ff1d92817e335a70e2d7d8c89b7306 (diff)
Fix crashes in pkg-build (GH issue #408)
-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 de8d3ec..0372685 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -5964,7 +5964,7 @@ namespace bpkg
// We will keep the output directory only if the external package
// is replaced with an external one (see above for details).
//
- bool keep_out (o.keep_out () && sp->external ());
+ bool keep_out (o.keep_out () && sp != nullptr && sp->external ());
// Marking upgraded dependencies as "required by command line"
// may seem redundant as they should already be pre-entered as