Browse Source

* linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.

gdb_7_4-branch
Doug Evans 15 years ago
parent
commit
31aba06f31
  1. 4
      gdb/ChangeLog
  2. 4
      gdb/linespec.c

4
gdb/ChangeLog

@ -1,3 +1,7 @@
2011-12-06 Doug Evans <dje@google.com>
* linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
2011-12-06 Joel Brobecker <brobecker@acacore.com>
* language.h (struct language_defn): Add new component

4
gdb/linespec.c

@ -2494,6 +2494,10 @@ decode_dollar (struct linespec_state *self, char *copy)
volatile struct gdb_exception exc;
/* Avoid "may be used uninitialized" warning. */
values.sals = NULL;
values.nelts = 0;
TRY_CATCH (exc, RETURN_MASK_ERROR)
{
values = decode_variable (self, copy);

Loading…
Cancel
Save