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

* apt-pkg/acquire-item.cc:
- Fix return value of pkgAcqFile::Custom600Headers() in the non-index
case, to avoid returning NULL and causing crashers in callers. This also
fixes a compiler warning.

martin@piware.de лет назад: 16
Родитель
Сommit
b26e2415ee
2 измененных файлов с 6 добавлено и 0 удалено
  1. 2 0
      apt-pkg/acquire-item.cc
  2. 4 0
      debian/changelog

+ 2 - 0
apt-pkg/acquire-item.cc

@@ -1688,5 +1688,7 @@ string pkgAcqFile::Custom600Headers()
 {
    if (IsIndexFile)
       return "\nIndex-File: true";
+   else
+      return "";
 }
 									/*}}}*/

+ 4 - 0
debian/changelog

@@ -29,6 +29,10 @@ apt (0.7.26~exp5) UNRELEASED; urgency=low
   * Add test/test-indexes.sh:
     - Test behaviour of index retrieval and usage, in particular with
       uncompressed and gzip compressed indexes.
+  * apt-pkg/acquire-item.cc:
+    - Fix return value of pkgAcqFile::Custom600Headers() in the non-index
+      case, to avoid returning NULL and causing crashers in callers. This also
+      fixes a compiler warning.
 
  -- Christian Perrier <bubulle@debian.org>  Tue, 11 May 2010 19:52:00 +0200