diff options
-rw-r--r-- | src/version.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 3d972fe..8594a93 100644 --- a/src/version.c +++ b/src/version.c @@ -143,7 +143,7 @@ int apk_version_compare(apk_blob_t a, apk_blob_t b) int at = TOKEN_DIGIT, bt = TOKEN_DIGIT; int av = 0, bv = 0; - while (at == bt && at != TOKEN_END && av == bv) { + while (at == bt && at != TOKEN_END && at != TOKEN_INVALID && av == bv) { av = get_token(&at, &a); bv = get_token(&bt, &b); #if 0 |