Просмотр исходного кода

don't explicitly init ExtractTar InFd with invalid fd

The default constructor of the FileFd will kick in anyway,
which will know that the Fd is invalid while with this explicit
call it must be assumed that the fd is in fact valid, which
might generate errors in the future
David Kalnischkies лет назад: 13
Родитель
Сommit
bf35c19b81
2 измененных файлов с 1 добавлено и 1 удалено
  1. 0 1
      apt-inst/contrib/extracttar.cc
  2. 1 0
      debian/changelog

+ 0 - 1
apt-inst/contrib/extracttar.cc

@@ -63,7 +63,6 @@ ExtractTar::ExtractTar(FileFd &Fd,unsigned long Max,string DecompressionProgram)
 
 {
    GZPid = -1;
-   InFd = -1;
    Eof = false;
 }
 									/*}}}*/

+ 1 - 0
debian/changelog

@@ -11,6 +11,7 @@ apt (0.9.8.3) UNRELEASED; urgency=low
   * do unpacks before configures in SmartConfigure (Closes: #707578)
   * fix support for multiple patterns in apt-cache search (Closes: #691453)
   * set Fail flag in FileFd on all errors consistently
+  * don't explicitly init ExtractTar InFd with invalid fd
 
  -- David Kalnischkies <kalnischkies@gmail.com>  Sun, 09 Jun 2013 15:06:24 +0200