Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/lib be sure to set pkgdbp to NULL after...
details: https://anonhg.NetBSD.org/src/rev/525352dacda3
branches: trunk
changeset: 488139:525352dacda3
user: hubertf <hubertf%NetBSD.org@localhost>
date: Mon Jun 19 13:28:06 2000 +0000
description:
be sure to set pkgdbp to NULL after closing the db.
diffstat:
usr.sbin/pkg_install/lib/pkgdb.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 989c8d80d79c -r 525352dacda3 usr.sbin/pkg_install/lib/pkgdb.c
--- a/usr.sbin/pkg_install/lib/pkgdb.c Mon Jun 19 12:19:38 2000 +0000
+++ b/usr.sbin/pkg_install/lib/pkgdb.c Mon Jun 19 13:28:06 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: pkgdb.c,v 1.6 2000/02/22 01:24:33 hubertf Exp $ */
+/* $NetBSD: pkgdb.c,v 1.7 2000/06/19 13:28:06 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.6 2000/02/22 01:24:33 hubertf Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.7 2000/06/19 13:28:06 hubertf Exp $");
#endif
/*
@@ -83,8 +83,10 @@
void
pkgdb_close(void)
{
- if (pkgdbp != NULL)
+ if (pkgdbp != NULL) {
(void) (pkgdbp->close) (pkgdbp);
+ pkgdbp = NULL;
+ }
}
/*
Home |
Main Index |
Thread Index |
Old Index