Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2012 05:47:12 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238645 - head/lib/libthr/thread
Message-ID:  <201207200547.q6K5lCBJ061608@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidxu
Date: Fri Jul 20 05:47:12 2012
New Revision: 238645
URL: http://svn.freebsd.org/changeset/base/238645

Log:
  Don't forget to initialize return value.

Modified:
  head/lib/libthr/thread/thr_getschedparam.c

Modified: head/lib/libthr/thread/thr_getschedparam.c
==============================================================================
--- head/lib/libthr/thread/thr_getschedparam.c	Fri Jul 20 03:37:19 2012	(r238644)
+++ head/lib/libthr/thread/thr_getschedparam.c	Fri Jul 20 05:47:12 2012	(r238645)
@@ -48,7 +48,7 @@ _pthread_getschedparam(pthread_t pthread
 	struct sched_param *param)
 {
 	struct pthread *curthread = _get_curthread();
-	int ret;
+	int ret = 0;
 
 	if (policy == NULL || param == NULL)
 		return (EINVAL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207200547.q6K5lCBJ061608>