diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -224,10 +224,10 @@ int expand_file(int fd, off_t l) { #define BUFSIZE (32*1024) int copy_fd(int sfd, int dfd, off_t l) { - off_t sfo, dfo, msfo, mdfo; + off_t sfo = 0, dfo = 0, msfo = 0, mdfo = 0; + size_t m = 0, sm = 0, dm = 0; void *sp, *dp; - off_t m, sm, dm; - static off_t psize = 0; + static size_t psize = 0; #ifdef USE_SENDFILE if (!copy_fd_sendfile(sfd, dfd, l)) |