debuggerd: Fix return type in error case
With our method returning 'bool', a "return -1" is interpretted as 'true'. We change this to an explicit 'false', as desired. Test: TreeHugger Change-Id: I222858b797bc4242a2dc6d4fe81df3d2586d055a
This commit is contained in:
parent
6cc741ec9a
commit
3fa9a59ea3
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ bool debuggerd_trigger_dump(pid_t tid, DebuggerdDumpType dump_type, unsigned int
|
|||
std::string error;
|
||||
if (!android::procinfo::GetProcessInfo(tid, &procinfo, &error)) {
|
||||
LOG(ERROR) << "libdebugged_client: failed to get process info: " << error;
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
pid = procinfo.pid;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue