gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 4 Jul 2011 14:16:14 +0000 (14:16 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 4 Jul 2011 14:16:14 +0000 (14:16 +0000)
Fix false GCC warning.
* linespec.c (decode_line_1): Initialize values.

gdb/ChangeLog
gdb/linespec.c

index 406da713d338f6bb3332dd09d6dccde519d9a889..c9e36ff8692a43f7171524bfde5f38897a6497f6 100644 (file)
@@ -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
index 7740633ff2f04a7b252e75a3368832c4155a13d9..1064e8ce8eeeb5ca5ba2c4a1c0195dfaf67239e9 100644 (file)
@@ -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,
This page took 0.031783 seconds and 4 git commands to generate.