iterate the iterator

It works better this way.  Trust me.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-02-18 16:15:15 -06:00
parent 2b39b34f5f
commit 084cbeaa80
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ int main(int argc, char **argv)
patches_data[i].orig_end = cur->vm_addr + cur->vm_len;
relas_data[i].r_offset = i * sizeof(struct kpatch_patch);
relas_data[i].r_info = GELF_R_INFO(cur->index, R_X86_64_64);
i++;
}
/* get next section index from elf header */