From 4558e1c8a47dd8e11aa726ca1e1884f6f715a82d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 16 Aug 1996 23:25:20 +0000 Subject: *** empty log message *** --- libtrivfs/migsupport.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libtrivfs/migsupport.c') diff --git a/libtrivfs/migsupport.c b/libtrivfs/migsupport.c index 14e28231..66c03482 100644 --- a/libtrivfs/migsupport.c +++ b/libtrivfs/migsupport.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995 Free Software Foundation + Copyright (C) 1994, 1995, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -37,7 +37,8 @@ trivfs_begin_using_protid (mach_port_t port) void trivfs_end_using_protid (struct trivfs_protid *cred) { - ports_port_deref (cred); + if (cred) + ports_port_deref (cred); } struct trivfs_control * @@ -60,5 +61,6 @@ trivfs_begin_using_control (mach_port_t port) void trivfs_end_using_control (struct trivfs_control *cred) { - ports_port_deref (cred); + if (cred) + ports_port_deref (cred); } -- cgit v1.2.3