Changeset d999817 in rtems


Ignore:
Timestamp:
Sep 17, 2013, 11:48:30 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8ac962e
Parents:
564860f
git-author:
Sebastian Huber <sebastian.huber@…> (09/17/13 11:48:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/17/13 11:58:53)
Message:

libtests/termios04: Avoid NULL pointer access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/termios04/termios_testdriver_intr.c

    r564860f rd999817  
    154154)
    155155{
    156   Tx_Buffer[Tx_Index++] = buf[0];
    157   (void) rtems_timer_fire_after( Tx_Timer, 10, Tx_ISR, NULL );
    158   return 1;
     156  if (len > 0) {
     157    Tx_Buffer[Tx_Index++] = buf[0];
     158    (void) rtems_timer_fire_after( Tx_Timer, 10, Tx_ISR, NULL );
     159  }
     160
     161  return 0;
    159162}
    160163
Note: See TracChangeset for help on using the changeset viewer.