aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 16:59:23 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 16:59:23 +0000
commitdbf37e6fedb5715addbaa8bf5447742816dbeb85 (patch)
tree96c459aa8192e8e7b89eea3e881038cadd9f28cd
parent8a3c7b3be201f1faf0f2dcd3d9882018c9425261 (diff)
downloadperl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar
perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.gz
perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.bz2
perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.tar.xz
perl-URPM-dbf37e6fedb5715addbaa8bf5447742816dbeb85.zip
(Trans_add) fix segfault when using --excludepath
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 8286e08..aac72eb 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2692,6 +2692,7 @@ Trans_add(trans, pkg, ...)
relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation));
while (--j >= 0) {
SV **e = av_fetch(excludepath, j, 0);
+ relocations[j].newPath = NULL;
if (e != NULL && *e != NULL) {
relocations[j].oldPath = SvPV_nolen(*e);
}