Changeset 5618997d in rtems


Ignore:
Timestamp:
02/22/18 14:34:48 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0d44e251
Parents:
40c623a8
git-author:
Sebastian Huber <sebastian.huber@…> (02/22/18 14:34:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/22/18 14:35:20)
Message:

termios: Fix use of uninitialized variable

Update #2840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    r40c623a8 r5618997d  
    373373)
    374374{
    375   rtems_status_code sc;
    376 
    377375  if (tty == NULL) {
    378376    static char c = 'a';
     
    491489     */
    492490    if (tty->handler.mode == TERMIOS_TASK_DRIVEN) {
     491      rtems_status_code sc;
     492
    493493      sc = rtems_task_create (
    494494                                   rtems_build_name ('T', 'x', 'T', c),
     
    517517      rtems_binary_semaphore_init (&tty->rawInBuf.Semaphore,
    518518                                   "termios raw input");
    519       if (sc != RTEMS_SUCCESSFUL)
    520         rtems_fatal_error_occurred (sc);
    521519    }
    522520
     
    574572     */
    575573    if (tty->handler.mode == TERMIOS_TASK_DRIVEN) {
     574      rtems_status_code sc;
     575
    576576      sc = rtems_task_start(
    577577        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
Note: See TracChangeset for help on using the changeset viewer.