From 6ca71ae60f2cefefe5fc0f9ebfdc5165cac1f0c1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 21 Jul 2024 22:12:23 +0300 Subject: Fix crashes in pkg-build (GH issue #408) --- bpkg/pkg-build.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1