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 Set things to a sane state for db(3...
details: https://anonhg.NetBSD.org/src/rev/08bef719de1a
branches: trunk
changeset: 479745:08bef719de1a
user: hubertf <hubertf%NetBSD.org@localhost>
date: Mon Dec 20 18:23:03 1999 +0000
description:
Set things to a sane state for db(3) routines.
diffstat:
usr.sbin/pkg_install/lib/pkgdb.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 030836406fdd -r 08bef719de1a usr.sbin/pkg_install/lib/pkgdb.c
--- a/usr.sbin/pkg_install/lib/pkgdb.c Mon Dec 20 18:19:18 1999 +0000
+++ b/usr.sbin/pkg_install/lib/pkgdb.c Mon Dec 20 18:23:03 1999 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: pkgdb.c,v 1.4 1999/08/24 00:48:40 hubertf Exp $ */
+/* $NetBSD: pkgdb.c,v 1.5 1999/12/20 18:23:03 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.4 1999/08/24 00:48:40 hubertf Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.5 1999/12/20 18:23:03 hubertf Exp $");
#endif
/*
@@ -131,6 +131,8 @@
keyd.size = strlen(key) + 1;
errno = 0; /* to be sure it's 0 if the key doesn't match anything */
+ vald.data = (void *)NULL;
+ vald.size = 0;
status = (pkgdbp->get) (pkgdbp, &keyd, &vald, 0);
if (status) {
vald.data = NULL;
Home |
Main Index |
Thread Index |
Old Index