Don't forget to initialize return value.

This commit is contained in:
David Xu 2012-07-20 05:47:12 +00:00
parent ec225efc58
commit 5674256c7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238645

View File

@ -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);