summaryrefslogtreecommitdiff
path: root/tar-tree.c
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-04-02 11:12:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-02 19:58:45 (GMT)
commit139faba8f5c86a960c893f92e25afd4caa79c2fb (patch)
treeca59d38e355e1bf6aa543cdb8090d6e4201d1e57 /tar-tree.c
parent20b1d700c94c8b5b2b8b6f1b4982858d03cd9453 (diff)
downloadgit-139faba8f5c86a960c893f92e25afd4caa79c2fb.zip
git-139faba8f5c86a960c893f92e25afd4caa79c2fb.tar.gz
git-139faba8f5c86a960c893f92e25afd4caa79c2fb.tar.bz2
Remove useless pointer update
buf is not used afterwards. The compiler optimized the dead store out anyway, but let's clean the source, too. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tar-tree.c')
-rw-r--r--tar-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tar-tree.c b/tar-tree.c
index 705b8fa..bd289a9 100644
--- a/tar-tree.c
+++ b/tar-tree.c
@@ -94,7 +94,6 @@ static void write_blocked(void *buf, unsigned long size)
}
if (size) {
memcpy(block + offset, buf, size);
- buf += size;
offset += size;
}
tail = offset % RECORDSIZE;