]> git.saurik.com Git - apt.git/commit - apt-pkg/contrib/fileutl.cc
Do nothing in FileFd::Write() if Size is 0
authorJulian Andres Klode <jak@debian.org>
Sat, 19 Dec 2015 12:01:14 +0000 (13:01 +0100)
committerJulian Andres Klode <jak@debian.org>
Sat, 19 Dec 2015 12:02:50 +0000 (13:02 +0100)
commit5df91bc70aeac9f39f33d748a3b5602fbf2a3e81
tree08662fadce968576b8b2a4cdcfc1fa335f02dcd3
parentc0b271edc2f6d9e5dea5ac82fbc911f0e3adfa7a
Do nothing in FileFd::Write() if Size is 0

Turn the do-while loop into while loops, so it simply does nothing
if the Size is already 0.

This reverts commit c0b271edc2f6d9e5dea5ac82fbc911f0e3adfa7a which
introduced a fix for a specific instance of the issue in the
CopyFile() function.

Closes: #808381
apt-pkg/contrib/fileutl.cc