From df4b58feaa458de39117c8f78137d26ed9928e29 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 22 Jun 2009 16:03:33 +0000 Subject: [PATCH] 2009-06-22 H.J. Lu PR server/10306 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.30.2