autoupdater: fix regression in version compare

Version strings with the same prefix, e.g. "1.0" and "1.0~pre", or even
"1.0" and "1.0.1" were considered equal. This is a regression in the C
autoupdater rewrite.
This commit is contained in:
Matthias Schiffer 2018-12-18 20:22:40 +01:00
parent 1dc8416ac1
commit 688051cb21
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ bool newer_than(const char *a, const char *b) {
if (b == NULL)
return true;
while (*a != '\0' && *b != '\0') {
while (*a != '\0' || *b != '\0') {
int first_diff = 0;
// compare non-digits character by character