X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-elf.c;h=116a3a6df4c5705319e83de3245ededd878716fa;hb=814d07b125fd4e0d24648d6d5215df09ccd4a0d4;hp=e71436b422fd0ca202c3fc6ed65abc670774a6b9;hpb=6b0ddc3d2c4774c4a02d1bb3b266d83b5aa8ef0e;p=lttng-ust.git 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) {