[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH] sparse: fix use of indeterminate value
From: |
Pavel Raiskup |
Subject: |
[Bug-tar] [PATCH] sparse: fix use of indeterminate value |
Date: |
Thu, 17 Dec 2015 10:06:53 +0100 |
Detected by cppcheck 1.70 (Fedora 23) and gcc 4.1.2 (RHEL5), newer
gcc does not complain.
* src/xheader.c (sparse_map_decoder): Move 'e' up from loop-block.
---
src/xheader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xheader.c b/src/xheader.c
index a5452a1..8e62383 100644
--- a/src/xheader.c
+++ b/src/xheader.c
@@ -1456,13 +1456,13 @@ sparse_map_decoder (struct tar_stat_info *st,
size_t size __attribute__((unused)))
{
int offset = 1;
+ struct sp_array e;
st->sparse_map_avail = 0;
while (1)
{
intmax_t u;
char *delim;
- struct sp_array e;
if (!ISDIGIT (*arg))
{
--
2.5.0
- [Bug-tar] [PATCH] sparse: fix use of indeterminate value,
Pavel Raiskup <=