aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 13:56:23 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 13:56:23 +0000
commit4ee19d4705bd5ef81c0cd1b9681cfca913bae90f (patch)
tree7a634ea001d917fa16211939a69fdf9371b8d6cc
parentfe91bcf7953d7321792bb3e4af293893e5492e9b (diff)
downloadperl-URPM-4ee19d4705bd5ef81c0cd1b9681cfca913bae90f.tar
perl-URPM-4ee19d4705bd5ef81c0cd1b9681cfca913bae90f.tar.gz
perl-URPM-4ee19d4705bd5ef81c0cd1b9681cfca913bae90f.tar.bz2
perl-URPM-4ee19d4705bd5ef81c0cd1b9681cfca913bae90f.tar.xz
perl-URPM-4ee19d4705bd5ef81c0cd1b9681cfca913bae90f.zip
(Trans_add) fix segfault
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index a3a7684..d0f6405 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2701,7 +2701,7 @@ Trans_add(trans, pkg, ...)
}
}
}
- RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(pkg->flag & FLAG_ID)), update, relocations) == 0;
+ RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(pkg->flag & FLAG_ID)), update, *relocations) == 0;
/* free allocated memory, check rpm is copying it just above, at least in 4.0.4 */
free(relocations);
} else RETVAL = 0;