Sfoglia il codice sorgente

remove Size >= 0 check as Itm.Size is an unsigned variable (clang warning)

David Kalnischkies 15 anni fa
parent
commit
59152cdb48
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apt-inst/contrib/extracttar.cc

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

@@ -336,7 +336,7 @@ bool ExtractTar::Go(pkgDirStream &Stream)
       }
       
       // And finish up
-      if (Itm.Size >= 0 && BadRecord == false)
+      if (BadRecord == false)
 	 if (Stream.FinishedFile(Itm,Fd) == false)
 	    return false;