summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-07-04 15:36:48 +0300
committerFlorian Festi <ffesti@redhat.com>2016-07-29 17:41:36 +0200
commit0e51d170042a878abb31d84e904a8ac3ca0d8254 (patch)
tree40f32cecf0ed1e5edd5edceb50e9ff538bcc294b /tools
parent1ac507f15f014e69b926a1c2bf9a46a2a4dcaff3 (diff)
downloadrpm-0e51d170042a878abb31d84e904a8ac3ca0d8254.tar.gz
Remove some unnecessary assignments flagged by cppcheck
Diffstat (limited to 'tools')
-rw-r--r--tools/elfdeps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elfdeps.c b/tools/elfdeps.c
index d3be691b5..74c268484 100644
--- a/tools/elfdeps.c
+++ b/tools/elfdeps.c
@@ -279,7 +279,7 @@ static void processProgHeaders(elfInfo *ei, GElf_Ehdr *ehdr)
static int processFile(const char *fn, int dtype)
{
int rc = 1;
- int fdno = -1;
+ int fdno;
struct stat st;
GElf_Ehdr *ehdr, ehdr_mem;
elfInfo *ei = rcalloc(1, sizeof(*ei));