summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-08-22 22:24:27 +0200
committerMichael Vogt <mvo@debian.org>2013-08-22 22:24:27 +0200
commitfbe0969131dc2472bcefbceaf390015ba68e1327 (patch)
tree8a559e599f2284f97e93ffbea3db24c24c567b6a /apt-pkg/tagfile.cc
parent85988543cb4692571a754818a56cd0fd1c27d5a9 (diff)
parent70e0c1683e7021a0682b0808b329a3cced3920ac (diff)
Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sid
Conflicts: apt-pkg/tagfile.h
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index 10bc08d95..868adf3d2 100644
--- a/apt-pkg/tagfile.cc
+++ b/apt-pkg/tagfile.cc
@@ -233,6 +233,16 @@ bool pkgTagFile::Jump(pkgTagSection &Tag,unsigned long long Offset)
return true;
}
/*}}}*/
+// pkgTagSection::pkgTagSection - Constructor /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+pkgTagSection::pkgTagSection()
+ : Section(0), TagCount(0), Stop(0), d(NULL)
+{
+ memset(&Indexes, 0, sizeof(Indexes));
+ memset(&AlphaIndexes, 0, sizeof(AlphaIndexes));
+}
+ /*}}}*/
// TagSection::Scan - Scan for the end of the header information /*{{{*/
// ---------------------------------------------------------------------
/* This looks for the first double new line in the data stream.