aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs4
1 files changed, 4 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index aac72eb..5e650a4 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2689,7 +2689,11 @@ Trans_add(trans, pkg, ...)
if (SvROK(ST(i+1)) && SvTYPE(SvRV(ST(i+1))) == SVt_PVAV) {
AV *excludepath = (AV*)SvRV(ST(i+1));
I32 j = 1 + av_len(excludepath);
+#ifdef RPM_446
+ relocations = calloc(j + 2, sizeof(*relocations));
+#else
relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation));
+#endif
while (--j >= 0) {
SV **e = av_fetch(excludepath, j, 0);
relocations[j].newPath = NULL;