From 5674256c7f2cac3ea22728ea2a9f57752a40ddcd Mon Sep 17 00:00:00 2001 From: David Xu Date: Fri, 20 Jul 2012 05:47:12 +0000 Subject: [PATCH] Don't forget to initialize return value. --- lib/libthr/thread/thr_getschedparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_getschedparam.c b/lib/libthr/thread/thr_getschedparam.c index e9f5d3be86a4..ff6c3ab2acc8 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);