aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 21:07:54 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 21:07:54 +0000
commitf2e10d35bf1f59586f89c4b21852c856687a68ac (patch)
tree5f8f4a40618ed64fff5c3bae62aa4ad653636618 /URPM.xs
parent8db371afa188d551f41bf620b9f6814e7c21af1a (diff)
downloadperl-URPM-f2e10d35bf1f59586f89c4b21852c856687a68ac.tar
perl-URPM-f2e10d35bf1f59586f89c4b21852c856687a68ac.tar.gz
perl-URPM-f2e10d35bf1f59586f89c4b21852c856687a68ac.tar.bz2
perl-URPM-f2e10d35bf1f59586f89c4b21852c856687a68ac.tar.xz
perl-URPM-f2e10d35bf1f59586f89c4b21852c856687a68ac.zip
(Urpm_stream2header) simplify
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 01326e8..a791c7e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3216,10 +3216,9 @@ Urpm_stream2header(fp)
pkg->h = headerRead(fd, HEADER_MAGIC_YES);
if (pkg->h) {
SV *sv_pkg;
- EXTEND(SP, 1);
sv_pkg = sv_newmortal();
sv_setref_pv(sv_pkg, "URPM::Package", (void*)pkg);
- PUSHs(sv_pkg);
+ XPUSHs(sv_pkg);
}
Fclose(fd);
}