diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:07:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:07:57 +0000 |
commit | fe3638feae4fd707f95e560af8ebdd5c56dc0872 (patch) | |
tree | 0f7736672108acdb7c57e7abc2a60b881f5f378a /URPM.xs | |
parent | f2e10d35bf1f59586f89c4b21852c856687a68ac (diff) | |
download | perl-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.xs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |