Commit 8f59221c4f0383153a7c7b499fbd1344cd9ad0f1

Guillem Jover 2021-02-19T06:51:18

nlist: Remove repeated shadowing variable declaration Warned-by: gcc

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/nlist.c b/src/nlist.c
index d22fa19..8012d5a 100644
--- a/src/nlist.c
+++ b/src/nlist.c
@@ -239,7 +239,6 @@ __fdnlist(int fd, struct nlist *list)
 		for (s = sbuf; cc > 0 && nent > 0; ++s, cc -= sizeof(*s)) {
 			char *name;
 			Elf_Word size;
-			struct nlist *p;
 
 			name = strtab + s->st_name;
 			if (name[0] == '\0')