Code

Remove useless pointer update
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 2 Apr 2006 11:12:47 +0000 (13:12 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Apr 2006 19:58:45 +0000 (12:58 -0700)
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>
tar-tree.c

index 705b8fa1c76dc665333f180278dca929e2a971f7..bd289a98f80d4a6869f3d7345bd53f16a43682bd 100644 (file)
@@ -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;