diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-07-20 05:47:12 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-07-20 05:47:12 +0000 |
commit | 95c021b95c16705df9fa252f777905c05cb1c233 (patch) | |
tree | e1928f5ca140eeec5681aceb1004bd7b10d05940 /lib | |
parent | 617731748280d2efa18842ecd83573892a9d73e3 (diff) | |
download | FreeBSD-src-95c021b95c16705df9fa252f777905c05cb1c233.zip FreeBSD-src-95c021b95c16705df9fa252f777905c05cb1c233.tar.gz |
Don't forget to initialize return value.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_getschedparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_getschedparam.c b/lib/libthr/thread/thr_getschedparam.c index e9f5d3b..ff6c3ab 100644 --- a/lib/libthr/thread/thr_getschedparam.c +++ b/lib/libthr/thread/thr_getschedparam.c @@ -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); |