Fix: prevent uninitialized use of elf_file
[babeltrace.git] / 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.022358 seconds and 4 git commands to generate.