QUIET flag initialization missing in 2 places.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 2 Nov 2018 13:20:59 +0000 (14:20 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 2 Nov 2018 13:20:59 +0000 (14:20 +0100)
Fix by Matthew Malcomson  <matthew.malcomson@arm.com>

Pushed as obvious.

gdb/ChangeLog
gdb/stack.c
gdb/symtab.c

index 8e40537..6decf3d 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
+
+       * symtab.c (info_functions_command): Initialize quiet flag.
+       * stack.c (info_args_command): Likewise.
+
 2018-11-01  Jim Wilson  <jimw@sifive.com>
 
        * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
index abbaf5d..f34d7b2 100644 (file)
@@ -2303,7 +2303,7 @@ info_args_command (const char *args, int from_tty)
 {
   std::string regexp;
   std::string t_regexp;
-  bool quiet;
+  bool quiet = false;
 
   while (args != NULL
         && extract_info_print_args (&args, &quiet, &regexp, &t_regexp))
index cd27a75..7649908 100644 (file)
@@ -4760,7 +4760,7 @@ info_functions_command (const char *args, int from_tty)
 {
   std::string regexp;
   std::string t_regexp;
-  bool quiet;
+  bool quiet = false;
 
   while (args != NULL
         && extract_info_print_args (&args, &quiet, &regexp, &t_regexp))