瀏覽代碼

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 年之前
父節點
當前提交
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