Don't forget to initialize return value.
This commit is contained in:
parent
ec225efc58
commit
5674256c7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238645
@ -48,7 +48,7 @@ _pthread_getschedparam(pthread_t pthread, int *policy,
|
||||
struct sched_param *param)
|
||||
{
|
||||
struct pthread *curthread = _get_curthread();
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
if (policy == NULL || param == NULL)
|
||||
return (EINVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user