diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 22:24:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 22:24:07 +0000 |
commit | bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a (patch) | |
tree | 5b941d6fe8030c7b5516e259eac7946564537cfd | |
parent | 4fabb8ff177c1b39da94d5253a4add9eb43b4c78 (diff) | |
download | perl-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
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |