From 1087564111495d951fd96eb6e78f231fd2492501 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Aug 1996 20:59:41 +0000 Subject: clock_getres: added error check for NULL pointer being passed in. --- cpukit/posix/src/time.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/time.c b/cpukit/posix/src/time.c index 5e202111dd..a915d7617a 100644 --- a/cpukit/posix/src/time.c +++ b/cpukit/posix/src/time.c @@ -215,6 +215,9 @@ int clock_getres( struct timespec *res ) { + if ( !res ) + set_errno_and_return_minus_one( EINVAL ); + switch ( clock_id ) { /* -- cgit v1.2.3