aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2010-10-14 00:35:35 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2010-10-14 00:35:35 +0000
commit9b69daf37005d064e0dfc0a1dc50b51a5c2314bb (patch)
treee5df0d3630628364fe3d3fd58d1db7a1aafda6d3
parent49af15ba447b3ca44cc8eff65ead551e98138f57 (diff)
downloadperl-URPM-9b69daf37005d064e0dfc0a1dc50b51a5c2314bb.tar
perl-URPM-9b69daf37005d064e0dfc0a1dc50b51a5c2314bb.tar.gz
perl-URPM-9b69daf37005d064e0dfc0a1dc50b51a5c2314bb.tar.bz2
perl-URPM-9b69daf37005d064e0dfc0a1dc50b51a5c2314bb.tar.xz
perl-URPM-9b69daf37005d064e0dfc0a1dc50b51a5c2314bb.zip
initialize lEVR & rEVR at declaration in do_rpmEVRcompare()
-rw-r--r--URPM.xs6
1 files changed, 2 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 0b3f9ad..a64f174 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -193,10 +193,8 @@ get_nvra(Header h) {
static int
do_rpmEVRcompare(const char *a, const char *b) {
int compare;
- EVR_t lEVR,
- rEVR;
- lEVR = rpmEVRnew(RPMSENSE_EQUAL, 0),
- rEVR = rpmEVRnew(RPMSENSE_EQUAL, 0);
+ EVR_t lEVR = rpmEVRnew(RPMSENSE_EQUAL, 0),
+ rEVR = rpmEVRnew(RPMSENSE_EQUAL, 0);
rpmEVRparse(a, lEVR);
rpmEVRparse(b, rEVR);
compare = rpmEVRcompare(lEVR, rEVR);