aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 23d1f89..1b17ba2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -352,8 +352,8 @@ ranges_overlap(uint32_t aflags, char *sa, uint32_t bflags, char *sb) {
EVR_t lEVR = rpmEVRnew(aflags, 0),
rEVR = rpmEVRnew(bflags, 0);
- backup_char(eosa);
- backup_char(eosb);
+ if(eosa) backup_char(eosa);
+ if(eosb) backup_char(eosb);
rpmEVRparse(sa, lEVR);
rpmEVRparse(sb, rEVR);
/* TODO: upstream bug? should rpmEVRparse really reset Flags? */