From d7bd6eaa4da603c7a93931a35a066bcc71fe1b46 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 21 Feb 1996 18:09:31 +0000 Subject: [PATCH] variable was initialized wrong - fixed CVS patchset: 382 CVS date: 1996/02/21 18:09:31 --- lib/install.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/install.c b/lib/install.c index 4bdb284..acf9353 100644 --- a/lib/install.c +++ b/lib/install.c @@ -100,9 +100,12 @@ int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, int length; char * s; dbIndexSet matches; - int * oldVersions = { 0 }; + int * oldVersions; int * intptr; + oldVersions = alloca(sizeof(int)); + *oldVersions = 0; + rc = pkgReadHeader(fd, &h, &isSource); if (rc) return rc; -- 2.7.4