From 5b3bbf983c555a7f3c2f8a901da842d07597c430 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 31 Aug 2015 18:25:02 -0400 Subject: [PATCH] Fix: elf: uninitialized ret Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1