From: Ian Jackson Date: Tue, 1 Jun 2010 14:26:26 +0000 (+0100) Subject: Assert readable_callback before we call it X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=commitdiff_plain;h=ff034fbd099c2ad74cba31e5beb9f1f54a80fc29;ds=sidebyside Assert readable_callback before we call it --- diff --git a/infile.c b/infile.c index 4e34c62..3c93d1f 100644 --- a/infile.c +++ b/infile.c @@ -192,6 +192,7 @@ static void *tailing_rable_call_time(oop_source *lp, struct timeval tv, dbg("**TRACT** ipf=%p reschedule",ipf); loop->on_time(loop, OOP_TIME_NOW, tailing_rable_call_time, ipf); + assert(ipf->readable_callback): return ipf->readable_callback(loop, &ipf->readable, ipf->readable_callback_user); }