aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-04 14:16:14 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-04 14:16:14 +0000
commit2f741504c04f9990ad984819c089c212b42ca8a5 (patch)
treecd48ea2b0c2837fff9ff60c5b65df9e86184cb6f /gdb
parenta04f20bdeb9500b59f3e8a1668d6ab3c04ecec73 (diff)
downloadgdb-2f741504c04f9990ad984819c089c212b42ca8a5.zip
gdb-2f741504c04f9990ad984819c089c212b42ca8a5.tar.gz
gdb-2f741504c04f9990ad984819c089c212b42ca8a5.tar.bz2
gdb/
Fix false GCC warning. * linespec.c (decode_line_1): Initialize values.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/linespec.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 406da71..c9e36ff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix false GCC warning.
+ * linespec.c (decode_line_1): Initialize values.
+
2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
* linespec.c (find_method): Accept the function type automatically only
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 7740633..1064e8c 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -932,6 +932,9 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
if (is_quote_enclosed)
++saved_arg;
+ /* Initialize it just to avoid a GCC false warning. */
+ memset (&values, 0, sizeof (values));
+
TRY_CATCH (ex, RETURN_MASK_ERROR)
{
values = decode_compound (argptr, funfirstline, canonical,