Fix: old gcc warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 1 Sep 2015 16:55:02 +0000 (12:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 1 Sep 2015 16:55:02 +0000 (12:55 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-elf.c

index e71436b422fd0ca202c3fc6ed65abc670774a6b9..116a3a6df4c5705319e83de3245ededd878716fa 100644 (file)
@@ -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) {
This page took 0.025081 seconds and 4 git commands to generate.