Fix: prevent uninitialized use of elf_file
authorAntoine Busque <abusque@efficios.com>
Mon, 18 Apr 2016 22:30:43 +0000 (18:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 May 2016 19:42:42 +0000 (15:42 -0400)
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/so-info.c

index a82e86b809f4d8ad959ed5a1690240635af2f81d..3a603b8f1561f0b2c52cb8e2b5765a559b9501b3 100644 (file)
@@ -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;
This page took 0.039119 seconds and 4 git commands to generate.