diff options
author | Miles Bader <miles@gnu.org> | 1995-07-08 22:59:43 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-08 22:59:43 +0000 |
commit | 52e99c5b8584574e59f09a133b4a82db655c46f1 (patch) | |
tree | 0adf9390f7642fc52b64af179fc9afb8cfb5f371 /libports | |
parent | bafaf013536eef09bee1982e04436c13899febc2 (diff) |
(ports_begin_rpc): Properly add INFO to PI's current_rpcs list when the
list is empty.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/begin-rpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/begin-rpc.c b/libports/begin-rpc.c index e1541b1d..83cb35b8 100644 --- a/libports/begin-rpc.c +++ b/libports/begin-rpc.c @@ -71,7 +71,8 @@ ports_begin_rpc (void *portstruct, struct rpc_info *info) /* Record that that an RPC is in progress */ info->thread = hurd_thread_self (); info->next = pi->current_rpcs; - pi->current_rpcs->prevp = &info->next; + if (pi->current_rpcs) + pi->current_rpcs->prevp = &info->next; info->prevp = &pi->current_rpcs; pi->current_rpcs = info; |