pkg: pkgconf_compare_version(): do not return levenshtein distance in strcmp() case

pull/199/head
Ariadne Conill 2020-05-24 14:18:16 -06:00
parent 92745ad9cb
commit 382a89c173
1 changed files with 2 additions and 2 deletions

View File

@ -860,8 +860,8 @@ pkgconf_compare_version(const char *a, const char *b)
} }
ret = strcmp(one, two); ret = strcmp(one, two);
if (ret) if (ret != 0)
return ret; return ret < 0 ? -1 : 1;
*str1 = oldch1; *str1 = oldch1;
*str2 = oldch2; *str2 = oldch2;