OSDN Git Service

Use assignment instead of reset for profile unique_fd
authorCalin Juravle <calin@google.com>
Wed, 15 Mar 2017 20:20:39 +0000 (13:20 -0700)
committerCalin Juravle <calin@google.com>
Wed, 15 Mar 2017 20:20:39 +0000 (13:20 -0700)
commit4eba6d702e7ca40875d7e2d30129672a43d9a28b
treedc2fb5f6ed4d612129bff49983f2f1816b5f9aa9
parentea8d46f1abfa6292b2d1069b62c998dc1e3f39d8
Use assignment instead of reset for profile unique_fd

Using reset with a unique_fd will just convert the unique_fd to int
without releasing it.

Test: adb shell cmd package compile -m speed-profile com.google.android.googlequicksearchbox
Bug: 36234017
Change-Id: I577197ac4a147765191777a5ebc6ef150dea1027
cmds/installd/dexopt.cpp