summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
Diffstat (limited to 'libports')
-rw-r--r--libports/interrupt-on-notify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libports/interrupt-on-notify.c b/libports/interrupt-on-notify.c
index 62f67768..74a50875 100644
--- a/libports/interrupt-on-notify.c
+++ b/libports/interrupt-on-notify.c
@@ -1,6 +1,6 @@
/* Mark an rpc to be interrupted when a port dies
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -92,7 +92,8 @@ ports_interrupt_rpc_on_notification (void *object,
pn->next = _ports_notifications;
pn->prevp = &_ports_notifications;
- _ports_notifications->prevp = &pn->next;
+ if (_ports_notifications)
+ _ports_notifications->prevp = &pn->next;
_ports_notifications = pn;
}