aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 2 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index a791c7e..63c2671 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1023,9 +1023,8 @@ parse_line(AV *depslist, HV *provides, HV *obsoletes, URPM__Package pkg, char *b
pkg->info = memcpy(malloc(data_len), data, data_len);
pkg->flag &= ~FLAG_ID_MASK;
pkg->flag |= 1 + av_len(depslist);
- URPM__Package _pkg;
- SV *sv_pkg = sv_setref_pv(newSVpvs(""), "URPM::Package",
- _pkg = memcpy(malloc(sizeof(struct s_Package)), pkg, sizeof(struct s_Package)));
+ URPM__Package _pkg = memcpy(malloc(sizeof(struct s_Package)), pkg, sizeof(struct s_Package));
+ SV *sv_pkg = sv_setref_pv(newSVpvs(""), "URPM::Package", _pkg);
if (call_package_callback(urpm, sv_pkg, callback)) {
if (provides) update_provides(_pkg, provides);
if (obsoletes) update_obsoletes(_pkg, obsoletes);