diff options
author | grant <grant@pkgsrc.org> | 2005-02-21 01:21:39 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-02-21 01:21:39 +0000 |
commit | 485637d8aff668bb7bea888956346674b55f0651 (patch) | |
tree | e84158c1e1a503e1fdd9258ea4c4c85a13712c23 /pkgtools/pkg_install | |
parent | c8bee1f4687ecc776d59b6d1db0f057dd8848f65 (diff) | |
download | pkgsrc-485637d8aff668bb7bea888956346674b55f0651.tar.gz |
sync with src:
initialise a variable before using it. pkg_info binpkg.tgz would pass
garbage on the command line to tar(1).
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/info/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/info/perform.c b/pkgtools/pkg_install/files/info/perform.c index b023a19e93b..92c9e0e9116 100644 --- a/pkgtools/pkg_install/files/info/perform.c +++ b/pkgtools/pkg_install/files/info/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.20 2005/02/10 23:51:18 grant Exp $ */ +/* $NetBSD: perform.c,v 1.21 2005/02/21 01:21:39 grant Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,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.20 2005/02/10 23:51:18 grant Exp $"); +__RCSID("$NetBSD: perform.c,v 1.21 2005/02/21 01:21:39 grant Exp $"); #endif #endif @@ -69,7 +69,7 @@ pkg_do(char *pkg) struct stat sb; char *cp = NULL; int code = 0; - char flist[sizeof(ALL_FNAMES)]; + char flist[sizeof(ALL_FNAMES)] = "\0"; if (IS_URL(pkg)) { if ((cp = fileGetURL(pkg)) != NULL) { |