Revert count > 0 to count == 0. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 79a7e08112044a199af35e9c7f9a3f75c3639e25 DIR parent 74efed84eb2e5cc3f5b72be8b112020a362e7232 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 7 Feb 2018 20:37:35 +0100 Revert count > 0 to count == 0. Diffstat: M ind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/ind.c b/ind.c @@ -118,7 +118,7 @@ xsendfile(int fd, int sock) count = 0; #endif - if (count > 0) { + if (count == 0) { sendb = xmalloc(bufsiz); while ((len = read(fd, sendb, bufsiz)) > 0) { sendi = sendb;