fix segfault on ci init
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 26 May 2007 15:26:03 +0000 (15:26 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 26 May 2007 15:26:03 +0000 (15:26 +0000)
lib/dvb_ci/dvbci.cpp

index 17754adf86505a79b38f4ab04d8b0535ee96e2d5..800a40d2b98fa8ac93c5edf262ffc30ea7512689 100644 (file)
@@ -124,7 +124,7 @@ int eDVBCIInterfaces::sendCAPMT(int slotid)
        while (it != m_pmt_handlers.end())
        {
                eDVBCISlot *tmp = it->cislot;
-               while (tmp != slot)
+               while (tmp && tmp != slot)
                        tmp = tmp->linked_next;
                if (tmp)
                {