solvsig_verify: error out early if the checksum is finished
[platform/upstream/libsolv.git] / ext / repo_updateinfoxml.c
index e4707fc..6af74f2 100644 (file)
@@ -174,7 +174,7 @@ makeevr_atts(Pool *pool, struct parsedata *pd, const char **atts)
       else if (!strcmp(*atts, "release"))
        r = atts[1];
     }
-  if (e && !strcmp(e, "0"))
+  if (e && (!*e || !strcmp(e, "0")))
     e = 0;
   if (v && !e)
     {