commit | 8ad7e930abc0eb707ffade97684499cee7f13d44 | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Wed Nov 18 16:42:44 2015 -0800 |
committer | Tim Murray <timmurray@google.com> | Wed Nov 18 16:42:44 2015 -0800 |
tree | e8be712d1bc061ba8645e9a23e5a47af5ba8844c | |
parent | 8a19c0cb3f5af2dd8024e6b3d9b841c7588d7485 [diff] |
Fix build break with uninitialized boost_fd. Change-Id: Icf209e2e0f4835db01f61dbf83b4715db9ef03a9
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index e89998a..5853fbd 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c
@@ -264,8 +264,8 @@ 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;