]> git.saurik.com Git - apt.git/commit
Do not try to read in FileFd::Read() if Size is 0
authorJulian Andres Klode <jak@debian.org>
Sat, 19 Dec 2015 12:07:12 +0000 (13:07 +0100)
committerJulian Andres Klode <jak@debian.org>
Sat, 19 Dec 2015 12:13:02 +0000 (13:13 +0100)
commit39e77e45ae627165a8f89d83a8f875251920ce05
treeac424004186649cb4a3372e0352c5f0db2daf8bb
parent5df91bc70aeac9f39f33d748a3b5602fbf2a3e81
Do not try to read in FileFd::Read() if Size is 0

There's no point trying to read 0 bytes, so let's just not
do this and switch to a while loop like in Write().

Gbp-Dch: ignore
apt-pkg/contrib/fileutl.cc