From 139faba8f5c86a960c893f92e25afd4caa79c2fb Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Sun, 2 Apr 2006 13:12:47 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- tar-tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tar-tree.c b/tar-tree.c index 705b8fa1..bd289a98 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; -- 2.11.0