In ser_open(), do fill in fdp->ifd before already

using it in ser_setspeed().


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@701 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2006-12-11 16:02:45 +00:00
parent 15635697c8
commit bfb57a4415
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
* ser_posix.c (ser_open): Do fill in fdp->ifd before already
using it in ser_setspeed().
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de> 2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
* jtagmkI.c (jtagmkI_close): revert baud rate to the initial * jtagmkI.c (jtagmkI_close): revert baud rate to the initial

View File

@ -236,6 +236,8 @@ static void ser_open(char * port, long baud, union filedescriptor *fdp)
exit(1); exit(1);
} }
fdp->ifd = fd;
/* /*
* set serial line attributes * set serial line attributes
*/ */
@ -246,8 +248,6 @@ static void ser_open(char * port, long baud, union filedescriptor *fdp)
progname, port, strerror(-rc)); progname, port, strerror(-rc));
exit(1); exit(1);
} }
fdp->ifd = fd;
} }