From 77ff4ef99768a583ad7a4da71b66b3f09fb8edce Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 26 Feb 1996 22:23:27 +0000 Subject: (ports_interrupt_rpc_on_notification): Only set PN->prev_req_p if PN != 0. --- libports/interrupt-on-notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libports/interrupt-on-notify.c b/libports/interrupt-on-notify.c index 74a50875..4f8c1344 100644 --- a/libports/interrupt-on-notify.c +++ b/libports/interrupt-on-notify.c @@ -118,7 +118,8 @@ ports_interrupt_rpc_on_notification (void *object, req->next_req = pn->reqs; req->prev_req_p = &pn->reqs; - pn->reqs->prev_req_p = &req->next_req; + if (pn->reqs) + pn->reqs->prev_req_p = &req->next_req; pn->reqs = req; req->next = rpc->notifies; -- cgit v1.2.3