projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728102b
)
variable was initialized wrong - fixed
author
ewt
<devnull@localhost>
Wed, 21 Feb 1996 18:09:31 +0000
(18:09 +0000)
committer
ewt
<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
patch
|
blob
|
history
diff --git
a/lib/install.c
b/lib/install.c
index
4bdb284
..
acf9353
100644
(file)
--- 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;