pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkg_install-renovation]: pkgsrc/pkgtools/pkg_install/files Explicitly...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4a620a1d4119
branches: pkg_install-renovation
changeset: 541594:4a620a1d4119
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Aug 10 22:09:38 2008 +0000
description:
Explicitly initialise plist in parse_plist.
diffstat:
pkgtools/pkg_install/files/info/perform.c | 5 ++---
pkgtools/pkg_install/files/lib/pkg_signature.c | 6 ++----
pkgtools/pkg_install/files/lib/plist.c | 7 +++++--
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r a25a6d27951a -r 4a620a1d4119 pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Sun Aug 10 22:08:16 2008 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Sun Aug 10 22:09:38 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.46.2.4 2008/08/02 20:33:50 joerg Exp $ */
+/* $NetBSD: perform.c,v 1.46.2.5 2008/08/10 22:09:38 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -17,7 +17,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.46.2.4 2008/08/02 20:33:50 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.46.2.5 2008/08/10 22:09:38 joerg Exp $");
#endif
#endif
@@ -377,7 +377,6 @@
package_t plist;
/* Read the contents list */
- plist.head = plist.tail = NULL;
parse_plist(&plist, meta->meta_contents);
/* Start showing the package contents */
diff -r a25a6d27951a -r 4a620a1d4119 pkgtools/pkg_install/files/lib/pkg_signature.c
--- a/pkgtools/pkg_install/files/lib/pkg_signature.c Sun Aug 10 22:08:16 2008 +0000
+++ b/pkgtools/pkg_install/files/lib/pkg_signature.c Sun Aug 10 22:09:38 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pkg_signature.c,v 1.1.2.5 2008/08/02 20:33:50 joerg Exp $ */
+/* $NetBSD: pkg_signature.c,v 1.1.2.6 2008/08/10 22:09:38 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: pkg_signature.c,v 1.1.2.5 2008/08/02 20:33:50 joerg Exp $");
+__RCSID("$NetBSD: pkg_signature.c,v 1.1.2.6 2008/08/10 22:09:38 joerg Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -460,8 +460,6 @@
archive_read_finish(a);
- plist.head = NULL;
- plist.tail = NULL;
parse_plist(&plist, buf);
free(buf);
p = find_plist(&plist, PLIST_NAME);
diff -r a25a6d27951a -r 4a620a1d4119 pkgtools/pkg_install/files/lib/plist.c
--- a/pkgtools/pkg_install/files/lib/plist.c Sun Aug 10 22:08:16 2008 +0000
+++ b/pkgtools/pkg_install/files/lib/plist.c Sun Aug 10 22:09:38 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: plist.c,v 1.17.4.8 2008/08/10 22:08:17 joerg Exp $ */
+/* $NetBSD: plist.c,v 1.17.4.9 2008/08/10 22:09:38 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
#else
-__RCSID("$NetBSD: plist.c,v 1.17.4.8 2008/08/10 22:08:17 joerg Exp $");
+__RCSID("$NetBSD: plist.c,v 1.17.4.9 2008/08/10 22:09:38 joerg Exp $");
#endif
#endif
@@ -309,6 +309,9 @@
const char *eol, *next;
size_t len;
+ pkg->head = NULL;
+ pkg->tail = NULL;
+
for (; *buf; buf = next) {
/* Until add_plist can deal with trailing whitespace. */
if ((eol = strchr(buf, '\n')) != NULL) {
Home |
Main Index |
Thread Index |
Old Index