gisi/pep: check for NULL callback

This commit is contained in:
Aki Niemi 2010-04-14 15:25:00 +03:00
parent 0f1db581da
commit 5d7bf546ef
1 changed files with 4 additions and 1 deletions

View 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;
}