From e362dc9319fe4863cf6d60ac41f8779807b7fbce Mon Sep 17 00:00:00 2001 From: Antoine Busque Date: Mon, 18 Apr 2016 18:30:43 -0400 Subject: [PATCH 1/1] Fix: prevent uninitialized use of elf_file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- lib/so-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1