From 6bfa0c34c51c33030da2185a6b9403af0308bc36 Mon Sep 17 00:00:00 2001 From: Khairul Kasmiran Date: Thu, 2 Nov 2017 23:37:27 +0800 Subject: [PATCH] Fix -Wtautological-compare warnings --- libr/bin/format/elf/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/bin/format/elf/elf.c b/libr/bin/format/elf/elf.c index ce3e4fe931..b19479e9a8 100644 --- a/libr/bin/format/elf/elf.c +++ b/libr/bin/format/elf/elf.c @@ -736,7 +736,7 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) sdb_num_set (sdb, "link", shdr->sh_link, 0); sdb_set (sdb, "link_section_name", link_section_name, 0); - for (cnt = 0, i = 0; i >= 0 && cnt < shdr->sh_info && i < shdr->sh_size; ++cnt) { + for (cnt = 0, i = 0; cnt < shdr->sh_info && i < shdr->sh_size; ++cnt) { Sdb *sdb_verdef = sdb_new0 (); char *vstart = ((char*)defs) + i; size_t vstart_off = i;