From: H.J. Lu Date: Mon, 22 Jun 2009 16:03:33 +0000 (+0000) Subject: 2009-06-22 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df4b58feaa458de39117c8f78137d26ed9928e29;p=binutils-gdb.git 2009-06-22 H.J. Lu PR server/10306 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 430cbd8bfbb..0ef577ec59e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-06-22 H.J. Lu + + PR server/10306 + * remote.c (getpkt_or_notif_sane_1): Initialize val to -1. + 2009-06-21 Michael Snyder * inferior.h: Update ancient comment. diff --git a/gdb/remote.c b/gdb/remote.c index 3fb7a70816f..6e8f69ccd4e 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. */