diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-13 13:52:28 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-13 13:52:28 +0100 |
commit | f14be456322a2c7310488c8a4bdec1d06fcf0e8d (patch) | |
tree | 53bb984ac978abfa11ac9ae073b684523ab40685 /apt-pkg/deb | |
parent | fa9c66be294a16e49b61ba6db491c506ad08cde2 (diff) |
cherry pick 2217.1.26 (cppcheck fixes)
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index d28461dab..eb43cbfb8 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -50,8 +50,10 @@ using namespace std; class pkgDPkgPMPrivate { public: - pkgDPkgPMPrivate() : dpkgbuf_pos(0), term_out(NULL), history_out(NULL) + pkgDPkgPMPrivate() : stdin_is_dev_null(false), dpkgbuf_pos(0), + term_out(NULL), history_out(NULL) { + dpkgbuf[0] = '\0'; } bool stdin_is_dev_null; // the buffer we use for the dpkg status-fd reading |