diff options
author | Doug Evans <dje@google.com> | 2011-12-06 19:57:47 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-12-06 19:57:47 +0000 |
commit | 31aba06f31d348be54adb50195af858baff6256f (patch) | |
tree | a5e3f38ea8f5459c52eeabbbc185c0f8efe1ecf8 /gdb/linespec.c | |
parent | f8eba3c61629b3c03ac1f33853eab4d8507adb9c (diff) | |
download | gdb-31aba06f31d348be54adb50195af858baff6256f.zip gdb-31aba06f31d348be54adb50195af858baff6256f.tar.gz gdb-31aba06f31d348be54adb50195af858baff6256f.tar.bz2 |
* linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c index e6e863d..f3afc58 100644 --- a/gdb/linespec.c +++ b/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); |