[sanitizer] Fix argument type and remove unneeded vector resize

llvm-svn: 331927
This commit is contained in:
Vitaly Buka 2018-05-09 22:03:52 +00:00
parent 6d26638c90
commit cf50425b77
1 changed files with 1 additions and 2 deletions

View File

@ -905,8 +905,7 @@ bool internal_sigismember(__sanitizer_sigset_t *set, int signum) {
#endif // !SANITIZER_SOLARIS
// ThreadLister implementation.
ThreadLister::ThreadLister(int pid) : pid_(pid), buffer_(4096) {
buffer_.resize(buffer_.capacity());
ThreadLister::ThreadLister(pid_t pid) : pid_(pid), buffer_(4096) {
char task_directory_path[80];
internal_snprintf(task_directory_path, sizeof(task_directory_path),
"/proc/%d/task/", pid);