Fix: elf: uninitialized ret
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 31 Aug 2015 22:25:02 +0000 (18:25 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 31 Aug 2015 22:27:42 +0000 (18:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-elf.c

index 0df70973fd7906f57d32e0289937bcbf861d7d1a..e71436b422fd0ca202c3fc6ed65abc670774a6b9 100644 (file)
@@ -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) {
This page took 0.025337 seconds and 5 git commands to generate.