gallium/radeon: fix an uninitialized-variable warning
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 19:13:44 +0000 (20:13 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 19:20:10 +0000 (20:20 +0100)
src/gallium/drivers/radeon/radeon_elf_util.c

index fd0632b7500e4b3fcb6aad8a1eb68717e122ffd3..9b508227fd42827dc879f51222d48457cb464bb3 100644 (file)
@@ -111,7 +111,7 @@ void radeon_elf_read(const char *elf_data, unsigned elf_size,
        Elf_Scn *section = NULL;
        Elf_Data *symbols = NULL, *relocs = NULL;
        size_t section_str_index;
-       unsigned symbol_sh_link;
+       unsigned symbol_sh_link = 0;
 
        /* One of the libelf implementations
         * (http://www.mr511.de/software/english.htm) requires calling