From 814d07b125fd4e0d24648d6d5215df09ccd4a0d4 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 1 Sep 2015 12:55:02 -0400 Subject: [PATCH] Fix: old gcc warning Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.34.1