Fix: elf: uninitialized ret
[deliverable/lttng-ust.git] / 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.026314 seconds and 5 git commands to generate.