summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorGlenn L McGrath2001-08-15 11:25:01 +0000
committerGlenn L McGrath2001-08-15 11:25:01 +0000
commitbac490fe533e16a6f24735f18ed9427e5d4ed8f0 (patch)
treed9cd51fb61ab774e5d98c1f31c7388b8e3933004 /archival
parentb6ec78161ddb081315ef468bd245fcd9f6c5f8df (diff)
downloadbusybox-bac490fe533e16a6f24735f18ed9427e5d4ed8f0.zip
busybox-bac490fe533e16a6f24735f18ed9427e5d4ed8f0.tar.gz
Fix version comparision bug
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 48c3928..d7279cf 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);