clock_getres: added error check for NULL pointer being passed in.

This commit is contained in:
Joel Sherrill
1996-08-12 20:59:41 +00:00
parent 3fbfbcd5f4
commit 1087564111
2 changed files with 6 additions and 0 deletions

View File

@@ -215,6 +215,9 @@ int clock_getres(
struct timespec *res
)
{
if ( !res )
set_errno_and_return_minus_one( EINVAL );
switch ( clock_id ) {
/*

View File

@@ -215,6 +215,9 @@ int clock_getres(
struct timespec *res
)
{
if ( !res )
set_errno_and_return_minus_one( EINVAL );
switch ( clock_id ) {
/*