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 17754ad..800a40d 100644 (file)
@@ -124,7 +124,7 @@ int eDVBCIInterfaces::sendCAPMT(int slotid)
        while (it != m_pmt_handlers.end())
        {
                eDVBCISlot *tmp = it->cislot;
        while (it != m_pmt_handlers.end())
        {
                eDVBCISlot *tmp = it->cislot;
-               while (tmp != slot)
+               while (tmp && tmp != slot)
                        tmp = tmp->linked_next;
                if (tmp)
                {
                        tmp = tmp->linked_next;
                if (tmp)
                {