]> git.tdb.fi Git - builder.git/commitdiff
Fix a crash in Binary
authorMikko Rasa <tdb@tdb.fi>
Sun, 15 Jul 2012 15:59:11 +0000 (18:59 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 15 Jul 2012 15:59:11 +0000 (18:59 +0300)
source/binary.cpp

index 7a3e7a5b6a34e0a58694323fd203f87c42bfd7e0..aa26608d695e46620ecfc57ae8a8383c83c70134 100644 (file)
@@ -53,7 +53,8 @@ void Binary::find_depends()
 
                                lib = lib->get_real_target();
                                if(StaticLibrary *stlib = dynamic_cast<StaticLibrary *>(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));