Skip to content

Commit

Permalink
Fix klocwork issues in GFX domain
Browse files Browse the repository at this point in the history
Add a normal initialization statement.
Add a if statement to validate the variable.

Change-Id: Ibf5b5a68293ab8a9022bfb50f469c57918c58e51
Test: Boot DUT successful
Tracked-On: https://jira.devtools.intel.com/browse/OAM-83419
Sighed-off-by: Yuanzhe, Liu <yuanzhe.liu@intel.com>
  • Loading branch information
yuanzhel authored and sysopenci committed Jun 27, 2019
1 parent 5baea2b commit 89cc5e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/compositor/gl/glprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ GLProgram::GLProgram()
alpha_loc_(0),
premult_loc_(0),
tex_matrix_loc_(0),
solid_color_loc_(0),
initialized_(false) {
}

Expand Down
2 changes: 2 additions & 0 deletions common/core/gpudevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ void GpuDevice::ParseLogicalDisplaySetting(
if (logical_split_str.empty() ||
logical_split_str.find_first_not_of("0123456789") != std::string::npos)
return;
if (physical_index_str.length() > 1)
return;
uint32_t physical_index = atoi(physical_index_str.c_str());
uint32_t logical_split_num = atoi(logical_split_str.c_str());
if (logical_split_num <= 1)
Expand Down

0 comments on commit 89cc5e9

Please sign in to comment.