* top.c (execute_command): Fix uninitialized variable error.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 17 Mar 2008 14:06:11 +0000 (14:06 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 17 Mar 2008 14:06:11 +0000 (14:06 +0000)
gdb/ChangeLog
gdb/top.c

index 44b6c405cf65ebac916516e107489ef14d346dad..fa6de885e34ab3f06b59f39c14b3fecdf60441ab 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * top.c (execute_command): Fix uninitialized variable error.
+
 2008-03-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
 
         * Makefile.in (amd64nbsd-nat.o): New dependency.
index 3b9aaab7ffe59a20b2a0d95b507ab69a355cc305..379f0b72b547f01f02939a26d467247011d64dd7 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -412,7 +412,7 @@ execute_command (char *p, int from_tty)
   char *line;
   struct continuation_arg *arg1;
   struct continuation_arg *arg2;
-  long time_at_cmd_start;
+  long time_at_cmd_start = 0;
 #ifdef HAVE_SBRK
   long space_at_cmd_start = 0;
 #endif