summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-01-12 23:57:03 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-01-12 23:57:03 +0100
commit23f3cfd036630c1c8f84159c60986f67167066e8 (patch)
tree4ecd070ff6ee35a23f78907c63ef9f909d2a9c88 /apt-pkg
parent52b22cea95a1ba506ee633c1610bf241817ab529 (diff)
* deb/dpkgpm.cc:
- fix popen/fclose mismatch reported by cppcheck. Thanks to Petter Reinholdtsen for report and patch! (Closes: #607803)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/dpkgpm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 95a3f173b..3b10e1a23 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -1411,7 +1411,7 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
{
while( fgets(buf, sizeof(buf), log) != NULL)
fprintf(report, " %s", buf);
- fclose(log);
+ pclose(log);
}
}
@@ -1427,7 +1427,7 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
{
while( fgets(buf, sizeof(buf), log) != NULL)
fprintf(report, " %s", buf);
- fclose(log);
+ pclose(log);
}
}