2009-06-22 H.J. Lu <hongjiu.lu@intel.com>

PR server/10306
	* remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
This commit is contained in:
H.J. Lu 2009-06-22 16:03:33 +00:00
parent e07e6e58be
commit df4b58feaa
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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. */