Skip to content

Commit f4b28d2

Browse files
Initialize enabled_extensions in TestICD code
Uninitialized memory triggers a runtime check that drastically slows down test execution.
1 parent 9501885 commit f4b28d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/icd/test_icd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ bool should_check(std::vector<const char*>* exts, VkDevice device, const char* e
17231723
}
17241724

17251725
PFN_vkVoidFunction get_device_func(VkDevice device, const char* pName) {
1726-
std::vector<const char*>* enabled_extensions;
1726+
std::vector<const char*>* enabled_extensions = nullptr;
17271727
FindDevice found_device{};
17281728
if (device != nullptr) {
17291729
found_device = lookup_device(device);

0 commit comments

Comments
 (0)