From 16fffca4dff5b6f60766937f92237f535952da15 Mon Sep 17 00:00:00 2001 From: grant Date: Sat, 20 Dec 2003 10:09:20 +0000 Subject: [PATCH] avoid uninitialized variable. noted by wiz. --- usr.sbin/pkg_install/lib/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index ca08714dd869..754e9ce7bd33 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,11 +1,11 @@ -/* $NetBSD: file.c,v 1.70 2003/12/20 03:31:56 grant Exp $ */ +/* $NetBSD: file.c,v 1.71 2003/12/20 10:09:20 grant Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp"; #else -__RCSID("$NetBSD: file.c,v 1.70 2003/12/20 03:31:56 grant Exp $"); +__RCSID("$NetBSD: file.c,v 1.71 2003/12/20 10:09:20 grant Exp $"); #endif #endif @@ -562,7 +562,7 @@ unpack(const char *pkg, const char *flist) { char args[10] = "-"; char cmd[FILENAME_MAX]; - const char *decompress_cmd; + const char *decompress_cmd = NULL; const char *suf; if (!IS_STDIN(pkg)) {