From 4699c9eb82fb55268976fda87f1f4bf5f7df95a4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 15 Jul 2012 18:59:11 +0300 Subject: [PATCH] Fix a crash in Binary --- source/binary.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/binary.cpp b/source/binary.cpp index 7a3e7a5..aa26608 100644 --- a/source/binary.cpp +++ b/source/binary.cpp @@ -53,7 +53,8 @@ void Binary::find_depends() lib = lib->get_real_target(); if(StaticLibrary *stlib = dynamic_cast(lib)) - queue.push_back(stlib->get_component()); + if(stlib->get_component()) + queue.push_back(stlib->get_component()); } else builder.problem(spkg.get_name(), format("Couldn't find library %s for %s", *i, name)); -- 2.45.2