gisi/pep: check for NULL callback
authorAki Niemi <aki.niemi@nokia.com>
Wed, 14 Apr 2010 12:25:00 +0000 (15:25 +0300)
committerAki Niemi <aki.niemi@nokia.com>
Tue, 20 Apr 2010 11:10:33 +0000 (14:10 +0300)
gisi/pep.c

index f1fe238..b25cb18 100644 (file)
@@ -66,7 +66,10 @@ static gboolean g_isi_pep_callback(GIOChannel *channel, GIOCondition cond,
                return TRUE;
        }
        pep->gprs_fd = fd;
-       pep->ready(pep, pep->opaque);
+
+       if (pep->ready)
+               pep->ready(pep, pep->opaque);
+
        return FALSE;
 }