aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 1 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index 37f6f6a..0a0357b 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2953,7 +2953,7 @@ Urpm_parse_rpm(urpm, filename, ...)
pkg.flag = 1 + av_len(depslist);
sv_pkg = sv_setref_pv(newSVpv("", 0), "URPM::Package",
_pkg = memcpy(malloc(sizeof(struct s_Package)), &pkg, sizeof(struct s_Package)));
- if (update_header(filename, &_pkg, keep_all_tags)) {
+ if (update_header(filename, _pkg, keep_all_tags)) {
if (call_package_callback(urpm, sv_pkg, callback)) {
if (provides) {
update_provides(_pkg, provides);
@@ -2962,8 +2962,6 @@ Urpm_parse_rpm(urpm, filename, ...)
if (packing) pack_header(_pkg);
av_push(depslist, sv_pkg);
}
- av_push(depslist, sv_setref_pv(newSVpv("", 0), "URPM::Package",
- memcpy(malloc(sizeof(struct s_Package)), &pkg, sizeof(struct s_Package))));
/* only one element read */
XPUSHs(sv_2mortal(newSViv(av_len(depslist))));