summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-26 22:23:27 +0000
committerMiles Bader <miles@gnu.org>1996-02-26 22:23:27 +0000
commit77ff4ef99768a583ad7a4da71b66b3f09fb8edce (patch)
treee1a5fbd45b12b7ddb6478c8c05ee54b2cc911f62
parentd795115010b3921993331a21b5854dcb8b21b655 (diff)
(ports_interrupt_rpc_on_notification): Only set PN->prev_req_p if PN != 0.
-rw-r--r--libports/interrupt-on-notify.c3
1 files changed, 2 insertions, 1 deletions
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;