fix uninitialized field in ada-lang.c (struct match_data)
authorJoel Brobecker <brobecker@gnat.com>
Wed, 14 Dec 2011 20:24:59 +0000 (20:24 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 14 Dec 2011 20:24:59 +0000 (20:24 +0000)
commit6475f2fe1c3e31535c8feeb68ac978eb5e37d664
treeb80094bb2c9dbf7ef4f9dd95b4a65fb5b135aad1
parentd6a0f6e0c71bc2217ddc2d8bc51331f4f713c43d
fix uninitialized field in ada-lang.c (struct match_data)

Field found_sym in add_nonlocal_symbols's struct match_data is
used uninitialized.  Rather than adding the initialization of
this field (to zero), we set the entire structure to zero first,
and then set the fields that need to be initialized to non-zero
next.

gdb/ChangeLog:

        * ada-lang.c (add_nonlocal_symbols): Initialize data to
        all zeros.  Remove setting of data.arg_sym to NULL.
gdb/ChangeLog
gdb/ada-lang.c