compare_deps: fix a bug in handling epochs

Fixes: 4.0.4-alt100.63~1
This commit is contained in:
Дмитрий Левин 2018-01-05 23:20:22 +00:00
parent 153086afe1
commit a555b44bb5

View File

@ -224,8 +224,9 @@ compare_deps (rpmTag tag, const char *Aevr, rpmsenseFlags Aflags,
* that they are equal, then the dep that has Epoch wins.
*/
const char *ae = aE, *be = bE;
if ((!(aE && *aE) || !(bE && *bE)))
if ((!(aE && *aE) || !(bE && *bE))) {
ae = NULL; be = NULL;
}
if ((aR && *aR) && !(bR && *bR))
wcmp = -1;