aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 21:07:57 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 21:07:57 +0000
commitfe3638feae4fd707f95e560af8ebdd5c56dc0872 (patch)
tree0f7736672108acdb7c57e7abc2a60b881f5f378a /URPM.xs
parentf2e10d35bf1f59586f89c4b21852c856687a68ac (diff)
downloadperl-URPM-fe3638feae4fd707f95e560af8ebdd5c56dc0872.tar
perl-URPM-fe3638feae4fd707f95e560af8ebdd5c56dc0872.tar.gz
perl-URPM-fe3638feae4fd707f95e560af8ebdd5c56dc0872.tar.bz2
perl-URPM-fe3638feae4fd707f95e560af8ebdd5c56dc0872.tar.xz
perl-URPM-fe3638feae4fd707f95e560af8ebdd5c56dc0872.zip
(parse_line) make it more readable
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);