Explorar o código

Fix warning about uninitialized variable

Reported-By: clang++ -Werror
Michael Vogt %!s(int64=12) %!d(string=hai) anos
pai
achega
b29599105e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      apt-pkg/deb/dpkgpm.cc

+ 2 - 1
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);