summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/time.c3
1 files changed, 3 insertions, 0 deletions
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 ) {
/*