summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index c05b312..18f8fa4 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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))