Browse Source

Fix warning about uninitialized variable

Reported-By: clang++ -Werror
tags/debian/1.0.4
Michael Vogt 7 years ago
parent
commit
b29599105e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apt-pkg/deb/dpkgpm.cc

+ 2
- 1
apt-pkg/deb/dpkgpm.cc View File

@@ -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);


Loading…
Cancel
Save