From: Mathieu Desnoyers Date: Tue, 1 Sep 2015 16:55:02 +0000 (-0400) Subject: Fix: old gcc warning X-Git-Tag: v2.8.0-rc1~91 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=814d07b125fd4e0d24648d6d5215df09ccd4a0d4;p=lttng-ust.git Fix: old gcc warning Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-elf.c b/liblttng-ust/lttng-ust-elf.c index e71436b4..116a3a6d 100644 --- a/liblttng-ust/lttng-ust-elf.c +++ b/liblttng-ust/lttng-ust-elf.c @@ -405,8 +405,8 @@ int lttng_ust_elf_get_build_id_from_segment( struct lttng_ust_elf *elf, uint8_t **build_id, size_t *length, uint64_t offset, uint64_t segment_end, int *found) { - uint8_t *_build_id; - size_t _length; + uint8_t *_build_id = NULL; /* Silence old gcc warning. */ + size_t _length = 0; /* Silence old gcc warning. */ int _found = 0; while (offset < segment_end) {