From: Mathieu Desnoyers Date: Mon, 31 Aug 2015 22:25:02 +0000 (-0400) Subject: Fix: elf: uninitialized ret X-Git-Tag: v2.8.0-rc1~93 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=5b3bbf983c555a7f3c2f8a901da842d07597c430;p=lttng-ust.git Fix: elf: uninitialized ret Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-elf.c b/liblttng-ust/lttng-ust-elf.c index 0df70973..e71436b4 100644 --- a/liblttng-ust/lttng-ust-elf.c +++ b/liblttng-ust/lttng-ust-elf.c @@ -507,7 +507,7 @@ int lttng_ust_elf_get_build_id(struct lttng_ust_elf *elf, uint8_t **build_id, for (i = 0; i < elf->ehdr->e_phnum; ++i) { uint64_t offset, segment_end; struct lttng_ust_elf_phdr *phdr; - int ret; + int ret = 0; phdr = lttng_ust_elf_get_phdr(elf, i); if (!phdr) {