From ff034fbd099c2ad74cba31e5beb9f1f54a80fc29 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jun 2010 15:26:26 +0100 Subject: [PATCH] Assert readable_callback before we call it --- infile.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2