[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] Set but unused variable in xheader.c
From: |
Matthias Koenig |
Subject: |
[Bug-tar] Set but unused variable in xheader.c |
Date: |
Wed, 29 Nov 2006 16:07:04 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (gnu/linux) |
Hi,
just a minor issue:
There is a variable in src/xheader.c which is set but not used.
It can be removed. Patch below.
Matthias
Index: tar-1.16-edit/src/xheader.c
===================================================================
--- tar-1.16-edit.orig/src/xheader.c
+++ tar-1.16-edit/src/xheader.c
@@ -647,12 +647,10 @@ void
xheader_read (union block *p, size_t size)
{
size_t j = 0;
- size_t nblocks;
free (extended_header.buffer);
size += BLOCKSIZE;
extended_header.size = size;
- nblocks = (size + BLOCKSIZE - 1) / BLOCKSIZE;
extended_header.buffer = xmalloc (size + 1);
extended_header.buffer[size] = '\0';
- [Bug-tar] Set but unused variable in xheader.c,
Matthias Koenig <=