diff options
Diffstat (limited to 'cpukit/posix/src/time.c')
-rw-r--r-- | cpukit/posix/src/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/posix/src/time.c b/cpukit/posix/src/time.c index 3a36bb33f5..3302f78554 100644 --- a/cpukit/posix/src/time.c +++ b/cpukit/posix/src/time.c @@ -166,7 +166,8 @@ int clock_gettime( time_t seconds; long ticks; - assert( tp ); + if ( !tp ) + set_errno_and_return_minus_one( EINVAL ); switch ( clock_id ) { @@ -212,7 +213,7 @@ int clock_getres( ) { if ( !res ) - set_errno_and_return_minus_one( EINVAL ); + set_errno_and_return_minus_one( EINVAL ); switch ( clock_id ) { |