mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Initialize variables and validate pointers before actually using them
Change-Id: Iae6fbeac124e1a02da419f5071e1ebc292b390cf Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
63721561f3
commit
92b15507b0
@@ -42,7 +42,7 @@ struct RasHandleContext {
|
||||
ze_result_t rasGet(uint32_t *pCount, zet_sysman_ras_handle_t *phRas);
|
||||
|
||||
OsSysman *pOsSysman = nullptr;
|
||||
std::vector<Ras *> handleList;
|
||||
std::vector<Ras *> handleList = {};
|
||||
|
||||
private:
|
||||
void createHandle(zet_ras_error_type_t type);
|
||||
|
||||
Reference in New Issue
Block a user