diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-02-08 16:24:11 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-02-08 16:24:11 +0000 |
commit | 4998c1dfb80b78923c507abfdd7c824fb74b840d (patch) | |
tree | eb6df1a395c21b79264bf6ace197974df9296eb9 /gdb/ser-mingw.c | |
parent | 79da184e3fbc01d095fed1c0a09929e0aa83a6c0 (diff) | |
download | gdb-4998c1dfb80b78923c507abfdd7c824fb74b840d.zip gdb-4998c1dfb80b78923c507abfdd7c824fb74b840d.tar.gz gdb-4998c1dfb80b78923c507abfdd7c824fb74b840d.tar.bz2 |
* ser-mingw.c (pipe_windows_close): Move variable initialization back
up.
Diffstat (limited to 'gdb/ser-mingw.c')
-rw-r--r-- | gdb/ser-mingw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index dad5cac..fcbef3a 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; |