chiark / gitweb /
Assert readable_callback before we call it
authorIan Jackson <ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 14:26:26 +0000 (15:26 +0100)
committerIan Jackson <ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 14:26:26 +0000 (15:26 +0100)
infile.c

index 4e34c62..3c93d1f 100644 (file)
--- 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);
 }