mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-10 06:36:02 +00:00
Add a missing null pointer check.
R=mark@chromium.org Review URL: https://codereview.chromium.org/593183003/
This commit is contained in:
parent
fec869992f
commit
7e5c11f59a
@ -129,6 +129,10 @@ pid_t ServiceManagementIsJobRunning(const std::string& label) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
launch_data_t pid = launch_data_dict_lookup(dictionary, LAUNCH_JOBKEY_PID);
|
launch_data_t pid = launch_data_dict_lookup(dictionary, LAUNCH_JOBKEY_PID);
|
||||||
|
if (!pid) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (launch_data_get_type(pid) != LAUNCH_DATA_INTEGER) {
|
if (launch_data_get_type(pid) != LAUNCH_DATA_INTEGER) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user