mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Fixed several issues found by static analysis
This commit is contained in:
@@ -225,6 +225,11 @@ Region::LocationExtraData::LocationExtraData(const LocationStaticStorage& locati
|
||||
ittHandle_name = __itt_string_handle_create(location.name);
|
||||
ittHandle_filename = __itt_string_handle_create(location.filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
ittHandle_name = 0;
|
||||
ittHandle_filename = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1019,6 +1024,10 @@ struct TraceArg::ExtraData
|
||||
// Consecutive calls to __itt_string_handle_create with the same name return the same value.
|
||||
ittHandle_name = __itt_string_handle_create(arg.name);
|
||||
}
|
||||
else
|
||||
{
|
||||
ittHandle_name = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user