mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Don't forget to initialize return value.
This commit is contained in:
parent
ec225efc58
commit
5674256c7f
@ -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