summaryrefslogtreecommitdiff
path: root/apt-pkg/statechanges.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/statechanges.cc')
-rw-r--r--apt-pkg/statechanges.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/statechanges.cc b/apt-pkg/statechanges.cc
index ed8f9f524..35af45538 100644
--- a/apt-pkg/statechanges.cc
+++ b/apt-pkg/statechanges.cc
@@ -25,7 +25,8 @@ public:
#define APT_GETTERSETTER(Name, Container) \
void StateChanges::Name(pkgCache::VerIterator const &Ver) \
{ \
- Container.push_back(Ver); \
+ if (Ver.end() == false) \
+ Container.push_back(Ver); \
}\
APT::VersionVector& StateChanges::Name() \
{ \