* gdb/ada-lang.c (standard_lookup): Prevent uninitialized variable

warning.
This commit is contained in:
Matthew Gretton-Dann 2012-05-31 09:34:40 +00:00
parent f715a0fb03
commit acbd605ddd
2 changed files with 7 additions and 1 deletions

View file

@ -4256,7 +4256,8 @@ static struct symbol *
standard_lookup (const char *name, const struct block *block,
domain_enum domain)
{
struct symbol *sym;
/* Initialize it just to avoid a GCC false warning. */
struct symbol *sym = NULL;
if (lookup_cached_symbol (name, domain, &sym, NULL))
return sym;