summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authormartin@piware.de <>2010-06-11 18:59:06 +0200
committermartin@piware.de <>2010-06-11 18:59:06 +0200
commitb26e2415ee2d4f611966488954f8d4f30fcf827c (patch)
tree6f881636a8301f382b65f191415b9a49b17061c8 /apt-pkg/acquire-item.cc
parentf4782b42840c1f86c40a59690698ccf6920e990a (diff)
* 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.
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 83fb5328b..bcfe6a98a 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1688,5 +1688,7 @@ string pkgAcqFile::Custom600Headers()
{
if (IsIndexFile)
return "\nIndex-File: true";
+ else
+ return "";
}
/*}}}*/