2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 14 Mar 2013 11:40:08 +0000 (11:40 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 14 Mar 2013 11:40:08 +0000 (11:40 +0000)
* tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
compiler warning.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 057133fc15c9faa84eec98e8e192f5fd5f225653..75599ca9d99aeafc889435b15e78dfbe456fbca1 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-14  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
+       compiler warning.
+
 2013-03-13  Joel Brobecker  <brobecker@adacore.com>
 
        * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
index bea6202f05fd7a46d521d565e609581a2beb2edd..419765bd73151f43ce632908345e199da5f64aa5 100644 (file)
@@ -2804,7 +2804,7 @@ static void
 cmd_qtv (char *own_buf)
 {
   ULONGEST num;
-  LONGEST val;
+  LONGEST val = 0;
   int err;
   char *packet = own_buf;