]> git.saurik.com Git - apt.git/commitdiff
memset() pkgTagSections data to make coverity happy
authorMichael Vogt <mvo@debian.org>
Tue, 6 Aug 2013 07:13:27 +0000 (09:13 +0200)
committerMichael Vogt <mvo@debian.org>
Tue, 6 Aug 2013 07:13:27 +0000 (09:13 +0200)
apt-pkg/tagfile.cc
apt-pkg/tagfile.h

index 1c79ee74ffaecc559f2a2daad8a4f63d30bdcce2..83c1a9a55c820ce0182c58ebeeb2fda221f2b2ee 100644 (file)
@@ -218,6 +218,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.
index 126f4219de805bba3c40243146df55b0e4c13c57..7b496ffd89a0453f19a09e410cedbbc3a4af48ec 100644 (file)
@@ -84,7 +84,7 @@ class pkgTagSection
       Stop = this->Stop;
    };
    
-   pkgTagSection() : Section(0), TagCount(0), Stop(0), d(NULL) {};
+   pkgTagSection();
    virtual ~pkgTagSection() {};
 };