From 4998c1dfb80b78923c507abfdd7c824fb74b840d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 8 Feb 2007 16:24:11 +0000 Subject: [PATCH] * ser-mingw.c (pipe_windows_close): Move variable initialization back up. --- gdb/ChangeLog | 5 +++++ gdb/ser-mingw.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index abdf18aeee6..cfb9cdbc61d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-02-08 Daniel Jacobowitz + + * ser-mingw.c (pipe_windows_close): Move variable initialization back + up. + 2007-02-08 Fred Fish * defs.h (request_quit): Remove declaration. diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index dad5cac35b8..fcbef3ab2ba 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -768,11 +768,10 @@ pipe_windows_close (struct serial *scb) static int pipe_windows_read (struct serial *scb, size_t count) { - HANDLE pipeline_out; + HANDLE pipeline_out = (HANDLE) _get_osfhandle (scb->fd); DWORD available; DWORD bytes_read; - pipeline_out = (HANDLE) _get_osfhandle (scb->fd); if (pipeline_out == INVALID_HANDLE_VALUE) return -1; -- 2.30.2