From: ian Date: Sat, 19 Jan 2008 14:28:56 +0000 (+0000) Subject: treat NUL specially X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=1b29538e9ade7cd7849f773e07af13eb3059dcde;p=trains.git treat NUL specially --- diff --git a/hostside/startup.c b/hostside/startup.c index 04d844a..7efdc1a 100644 --- a/hostside/startup.c +++ b/hostside/startup.c @@ -198,6 +198,7 @@ void on_pic_detect1(const PicInsnInfo *pii, const PicInsn *pi, int segn) { /*---------- fixme move these to where they want to go ----------*/ void on_pic_nmradone(const PicInsnInfo *pii, const PicInsn *pi, int objnum) { + if (!objnum) die("PIC sent NUL!"); if (sta_state <= Sta_Settling) return; if (sta_state != Sta_Run) die("PIC sent NMRADONE in Resolving");