summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-28 10:00:52 +0200
committerMichael Vogt <mvo@debian.org>2014-05-28 10:00:52 +0200
commitb29599105ed9a5bb38b55cb066ef81256d66be41 (patch)
tree0ca15a02ffea2373c0ac25c653aa9965037ca6f6 /apt-pkg/deb/dpkgpm.cc
parent28ba3f89659afe95fee4175d802febf895dc15a4 (diff)
Fix warning about uninitialized variable
Reported-By: clang++ -Werror
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index e410594df..613a4de9f 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -1438,7 +1438,8 @@ bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress)
if (_config->FindB("DPkg::FlushSTDIN",true) == true && isatty(STDIN_FILENO))
{
- int Flags,dummy;
+ int Flags;
+ int dummy = 0;
if ((Flags = fcntl(STDIN_FILENO,F_GETFL,dummy)) < 0)
_exit(100);