projects
/
platform
/
upstream
/
Vulkan-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b94e87
)
Fix Condition Statement Error
author
mylifeyouwill
<851577047@qq.com>
Thu, 13 Jul 2023 08:53:34 +0000
(16:53 +0800)
committer
Charles Giessen
<46324611+charles-lunarg@users.noreply.github.com>
Fri, 14 Jul 2023 08:49:33 +0000
(10:49 +0200)
loader/loader.c
patch
|
blob
|
history
diff --git
a/loader/loader.c
b/loader/loader.c
index
21ccc98
..
7eb9881
100644
(file)
--- a/
loader/loader.c
+++ b/
loader/loader.c
@@
-3779,7
+3779,7
@@
VkResult get_override_layer_override_paths(struct loader_instance *inst, struct
override_path_size += determine_data_file_path_size(prop->override_paths.list[j], 0);
}
*override_paths = loader_instance_heap_alloc(inst, override_path_size, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
- if (override_paths == NULL) {
+ if (
*
override_paths == NULL) {
return VK_ERROR_OUT_OF_HOST_MEMORY;
}
cur_write_ptr = &(*override_paths)[0];