Merge pull request #712 from jpoimboe/fix-uninitialized-warnings

lookup: silence maybe-uninitialized warnings for -O2
This commit is contained in:
Joe Lawrence 2017-06-05 13:06:30 -04:00 committed by GitHub
commit 2ef755bbb9
1 changed files with 2 additions and 2 deletions

View File

@ -80,9 +80,9 @@ static int discarded_sym(struct lookup_table *table,
static void find_local_syms(struct lookup_table *table, char *hint,
struct sym_compare_type *child_locals)
{
struct object_symbol *sym, *file_sym;
struct object_symbol *sym, *file_sym = NULL;
int i, in_file = 0;
struct sym_compare_type *child_sym;
struct sym_compare_type *child_sym = NULL;
if (!child_locals)
return;