diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-10-14 00:35:35 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-10-14 00:35:35 +0000 |
commit | 9b69daf37005d064e0dfc0a1dc50b51a5c2314bb (patch) | |
tree | e5df0d3630628364fe3d3fd58d1db7a1aafda6d3 | |
parent | 49af15ba447b3ca44cc8eff65ead551e98138f57 (diff) | |
download | perl-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.xs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |