From bac490fe533e16a6f24735f18ed9427e5d4ed8f0 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Wed, 15 Aug 2001 11:25:01 +0000 Subject: Fix version comparision bug --- archival/dpkg.c | 2 +- dpkg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archival/dpkg.c b/archival/dpkg.c index 48c392894..d7279cfd0 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -217,7 +217,7 @@ int version_compare_part(const char *version1, const char *version2) if (version1 == NULL) { version1 = xstrdup(""); } - if (version2 != NULL) { + if (version2 == NULL) { version2 = xstrdup(""); } upstream_len1 = strlen(version1); diff --git a/dpkg.c b/dpkg.c index 48c392894..d7279cfd0 100644 --- a/dpkg.c +++ b/dpkg.c @@ -217,7 +217,7 @@ int version_compare_part(const char *version1, const char *version2) if (version1 == NULL) { version1 = xstrdup(""); } - if (version2 != NULL) { + if (version2 == NULL) { version2 = xstrdup(""); } upstream_len1 = strlen(version1); -- cgit v1.2.3