variable was initialized wrong - fixed
authorewt <devnull@localhost>
Wed, 21 Feb 1996 18:09:31 +0000 (18:09 +0000)
committerewt <devnull@localhost>
Wed, 21 Feb 1996 18:09:31 +0000 (18:09 +0000)
CVS patchset: 382
CVS date: 1996/02/21 18:09:31

lib/install.c

index 4bdb284..acf9353 100644 (file)
@@ -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;