aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
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/linespec.c
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/linespec.c')
-rw-r--r--gdb/linespec.c3
1 files changed, 3 insertions, 0 deletions
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,