diff options
Diffstat (limited to 'c/src/exec/rtems/src/region.c')
-rw-r--r-- | c/src/exec/rtems/src/region.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/region.c b/c/src/exec/rtems/src/region.c index ecfaf32382..d0720f5040 100644 --- a/c/src/exec/rtems/src/region.c +++ b/c/src/exec/rtems/src/region.c @@ -314,6 +314,8 @@ rtems_status_code rtems_region_get_segment( Thread_Control *executing; void *the_segment; + *segment = NULL; + if ( size == 0 ) return RTEMS_INVALID_SIZE; |