summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-01-19 12:50:37 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-01-19 12:50:37 +0100
commit3bfb443cbcf82c9f1c56de0f7ca65e16d2ab04b9 (patch)
treeafac982a686e18c2758ff285410cd0b575613efe
parent38e00525e62cb2e995bfe310aabf03762b1fdf7a (diff)
apt-pkg/pkgcachegen.cc: when searching for duplicates in the description, avoid side effect
-rw-r--r--apt-pkg/pkgcachegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index f71547f39..397c19829 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -143,7 +143,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List,
// don't add a new description if we have one for the given
// md5 && language
- for ( ; Desc.end() == false; LastDesc = &Desc->NextDesc, Desc++)
+ for ( ; Desc.end() == false; Desc++)
if (MD5SumValue(Desc.md5()) == CurMd5 &&
Desc.LanguageCode() == List.DescriptionLanguage())
duplicate=true;