From: Antoine Busque Date: Mon, 18 Apr 2016 22:30:43 +0000 (-0400) Subject: Fix: prevent uninitialized use of elf_file X-Git-Tag: v1.4.0-rc1~63 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e362dc9319fe4863cf6d60ac41f8779807b7fbce;hp=b8652b58abed1380772e7906d41027ee1076eafb Fix: prevent uninitialized use of elf_file Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- diff --git a/lib/so-info.c b/lib/so-info.c index a82e86b8..3a603b8f 100644 --- a/lib/so-info.c +++ b/lib/so-info.c @@ -491,7 +491,7 @@ static int so_info_set_elf_file(struct so_info *so) { int elf_fd; - Elf *elf_file; + Elf *elf_file = NULL; if (!so) { goto error;