* ser-mingw.c (pipe_windows_close): Move variable initialization back
authorDaniel Jacobowitz <drow@false.org>
Thu, 8 Feb 2007 16:24:11 +0000 (16:24 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 8 Feb 2007 16:24:11 +0000 (16:24 +0000)
up.

gdb/ChangeLog
gdb/ser-mingw.c

index abdf18aeee66caa201a7b725b4542a9701775276..cfb9cdbc61da0dae0901018d4873d18123516e34 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ser-mingw.c (pipe_windows_close): Move variable initialization back
+       up.
+
 2007-02-08  Fred Fish  <fnf@specifix.com>
 
        * defs.h (request_quit): Remove declaration.
index dad5cac35b831d4b517c564ceadd699c7fd078c8..fcbef3ab2ba7097d8a9e0381689e1d442b07084d 100644 (file)
@@ -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;