aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 22:24:07 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 22:24:07 +0000
commitbfb140cc7b0d7e4f6bc55ef1946af19fd273f99a (patch)
tree5b941d6fe8030c7b5516e259eac7946564537cfd /URPM.xs
parent4fabb8ff177c1b39da94d5253a4add9eb43b4c78 (diff)
downloadperl-URPM-bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a.tar
perl-URPM-bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a.tar.gz
perl-URPM-bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a.tar.bz2
perl-URPM-bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a.tar.xz
perl-URPM-bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a.zip
(Trans_add) factorize size to allocate
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index f4fb646..3edee4e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2692,7 +2692,7 @@ Trans_add(trans, pkg, ...)
#ifdef RPM_446
relocations = calloc(j + 1, sizeof(*relocations));
#else
- relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation));
+ relocations = calloc(j + 1, sizeof(rpmRelocation));
#endif
while (--j >= 0) {
SV **e = av_fetch(excludepath, j, 0);