From 5d7bf546ef32b8048bf4be1d64d23db9d580bcc4 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Wed, 14 Apr 2010 15:25:00 +0300 Subject: [PATCH] gisi/pep: check for NULL callback --- gisi/pep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gisi/pep.c b/gisi/pep.c index f1fe238..b25cb18 100644 --- a/gisi/pep.c +++ b/gisi/pep.c @@ -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; } -- 2.7.4