Fix build break with uninitialized boost_fd.

Change-Id: Icf209e2e0f4835db01f61dbf83b4715db9ef03a9
(cherry picked from commit def6c151f4)
This commit is contained in:
Tim Murray 2015-11-18 16:42:44 -08:00 committed by Bill Yi
parent 82d84897b1
commit b43225eefb
1 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ int set_cpuset_policy(int tid, SchedPolicy policy)
policy = _policy(policy);
pthread_once(&the_once, __initialize);
int fd;
int boost_fd;
int fd = -1;
int boost_fd = -1;
switch (policy) {
case SP_BACKGROUND:
fd = bg_cpuset_fd;