File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ umf_result_t initialize(T *obj, ArgsTuple &&args) {
6666}
6767
6868template <typename T> umf_memory_pool_ops_t poolOpsBase () {
69- umf_memory_pool_ops_t ops;
69+ umf_memory_pool_ops_t ops{} ;
7070 ops.version = UMF_VERSION_CURRENT;
7171 ops.finalize = [](void *obj) { delete reinterpret_cast <T *>(obj); };
7272 UMF_ASSIGN_OP (ops, T, malloc, ((void *)nullptr ));
@@ -80,7 +80,7 @@ template <typename T> umf_memory_pool_ops_t poolOpsBase() {
8080}
8181
8282template <typename T> umf_memory_provider_ops_t providerOpsBase () {
83- umf_memory_provider_ops_t ops;
83+ umf_memory_provider_ops_t ops{} ;
8484 ops.version = UMF_VERSION_CURRENT;
8585 ops.finalize = [](void *obj) { delete reinterpret_cast <T *>(obj); };
8686 UMF_ASSIGN_OP (ops, T, alloc, UMF_RESULT_ERROR_UNKNOWN);
You can’t perform that action at this time.
0 commit comments