From: Daniel Jacobowitz Date: Thu, 8 Feb 2007 16:24:11 +0000 (+0000) Subject: * ser-mingw.c (pipe_windows_close): Move variable initialization back X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4998c1dfb80b78923c507abfdd7c824fb74b840d;p=binutils-gdb.git * ser-mingw.c (pipe_windows_close): Move variable initialization back up. --- 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;