Import the following change to add/perform.c from src to pkgsrc:
Fix uninitialized variable which was causing pkg_add -u to randomly dump core. This may fix PR pkg/30292. Also bump the pkgsrc PKGTOOLS_VERSION to 20060720.
This commit is contained in:
parent
a22fa991e4
commit
9d4c7f77de
2 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: perform.c,v 1.42 2006/05/10 04:25:30 jlam Exp $ */
|
||||
/* $NetBSD: perform.c,v 1.43 2006/07/20 11:29:48 gson Exp $ */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
|
@ -14,7 +14,7 @@
|
|||
#if 0
|
||||
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
|
||||
#else
|
||||
__RCSID("$NetBSD: perform.c,v 1.42 2006/05/10 04:25:30 jlam Exp $");
|
||||
__RCSID("$NetBSD: perform.c,v 1.43 2006/07/20 11:29:48 gson Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -575,6 +575,8 @@ pkg_do(const char *pkg, lpkg_head_t *pkgs)
|
|||
plist_t *depp;
|
||||
char depC[MaxPathSize];
|
||||
|
||||
depPlist.head = depPlist.tail = NULL;
|
||||
|
||||
s = strrchr(pkg2chk, '\n');
|
||||
if (s)
|
||||
*s = '\0'; /* strip trailing '\n' */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: version.h,v 1.60 2006/07/01 19:37:25 dillo Exp $ */
|
||||
/* $NetBSD: version.h,v 1.61 2006/07/20 11:29:48 gson Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
|
||||
|
@ -33,6 +33,6 @@
|
|||
#ifndef _INST_LIB_VERSION_H_
|
||||
#define _INST_LIB_VERSION_H_
|
||||
|
||||
#define PKGTOOLS_VERSION "20060701"
|
||||
#define PKGTOOLS_VERSION "20060720"
|
||||
|
||||
#endif /* _INST_LIB_VERSION_H_ */
|
||||
|
|
Loading…
Reference in a new issue