summaryrefslogtreecommitdiff
path: root/apt-pkg/indexfile.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 19:20:53 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 19:20:53 +0200
commitdd6882853b4555a6113740afca417acbaa060043 (patch)
tree5d05673e84fd0f9209642fa13d016345d9360ca1 /apt-pkg/indexfile.cc
parentb40b7c380acbdcd84338bdcd253df32f1ef79ed8 (diff)
fix some cppcheck: (warning) Member variable is not initialized in the constructor.
Diffstat (limited to 'apt-pkg/indexfile.cc')
-rw-r--r--apt-pkg/indexfile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc
index 37be87055..f18ddbfaa 100644
--- a/apt-pkg/indexfile.cc
+++ b/apt-pkg/indexfile.cc
@@ -27,7 +27,8 @@ unsigned long pkgIndexFile::Type::GlobalListLen = 0;
pkgIndexFile::Type::Type()
{
ItmList[GlobalListLen] = this;
- GlobalListLen++;
+ GlobalListLen++;
+ Label = NULL;
}
/*}}}*/
// Type::GetType - Locate the type by name /*{{{*/