projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8eba3c
)
* linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
author
Doug Evans
<dje@google.com>
Tue, 6 Dec 2011 19:57:47 +0000
(19:57 +0000)
committer
Doug Evans
<dje@google.com>
Tue, 6 Dec 2011 19:57:47 +0000
(19:57 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/linespec.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index ece06e90ad6c9308f481ab9f2188a96ab98961d7..ffecf05594fdf819f89dff562f67ff9921b85c8c 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
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
diff --git
a/gdb/linespec.c
b/gdb/linespec.c
index e6e863d65931846c92d4b288a7075250cd0be984..f3afc58e0e3139b895c30ec78bff54417aa20795 100644
(file)
--- 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);