mirror of git://git.sysmocom.de/ofono
gisi/pep: check for NULL callback
This commit is contained in:
parent
0f1db581da
commit
5d7bf546ef
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue