aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-06-22 16:03:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-06-22 16:03:33 +0000
commitdf4b58feaa458de39117c8f78137d26ed9928e29 (patch)
tree755fa1ab61f6a9d819941774574c81399680035e /gdb
parente07e6e58be1c5273ed79a25c80ba831e71ac86b1 (diff)
downloadgdb-df4b58feaa458de39117c8f78137d26ed9928e29.zip
gdb-df4b58feaa458de39117c8f78137d26ed9928e29.tar.gz
gdb-df4b58feaa458de39117c8f78137d26ed9928e29.tar.bz2
2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
PR server/10306 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 430cbd8..0ef577e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR server/10306
+ * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
+
2009-06-21 Michael Snyder <msnyder@vmware.com>
* inferior.h: Update ancient comment.
diff --git a/gdb/remote.c b/gdb/remote.c
index 3fb7a70..6e8f69c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6380,7 +6380,7 @@ getpkt_or_notif_sane_1 (char **buf, long *sizeof_buf, int forever,
int c;
int tries;
int timeout;
- int val;
+ int val = -1;
/* We're reading a new response. Make sure we don't look at a
previously cached response. */