* mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
authorPedro Alves <palves@redhat.com>
Fri, 29 May 2009 19:06:12 +0000 (19:06 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 29 May 2009 19:06:12 +0000 (19:06 +0000)
gdb/ChangeLog
gdb/mi/mi-interp.c

index 9af938df543dd0ce898c1dd49fb1eb03351c49da..b620d98e18499a92a82ef2b4f772e886b82d9264 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
+
 2009-05-29  Eli Zaretskii  <eliz@gnu.org>
 
        * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
index 0d67161250d4cfaa186b3aefe57b7077a3b742c2..5ad4a51753b2c3dde3085c8b47fe67f9285ed631 100644 (file)
@@ -447,7 +447,7 @@ mi_on_resume (ptid_t ptid)
     fprintf_unfiltered (raw_stdout, "*running,thread-id=\"all\"\n");
   else if (ptid_is_pid (ptid))
     {
-      int count;
+      int count = 0;
 
       /* Backwards compatibility.  If there's only one inferior,
         output "all", otherwise, output each resumed thread