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) {
66
66
}
67
67
68
68
template <typename T> umf_memory_pool_ops_t poolOpsBase () {
69
- umf_memory_pool_ops_t ops;
69
+ umf_memory_pool_ops_t ops{} ;
70
70
ops.version = UMF_VERSION_CURRENT;
71
71
ops.finalize = [](void *obj) { delete reinterpret_cast <T *>(obj); };
72
72
UMF_ASSIGN_OP (ops, T, malloc, ((void *)nullptr ));
@@ -80,7 +80,7 @@ template <typename T> umf_memory_pool_ops_t poolOpsBase() {
80
80
}
81
81
82
82
template <typename T> umf_memory_provider_ops_t providerOpsBase () {
83
- umf_memory_provider_ops_t ops;
83
+ umf_memory_provider_ops_t ops{} ;
84
84
ops.version = UMF_VERSION_CURRENT;
85
85
ops.finalize = [](void *obj) { delete reinterpret_cast <T *>(obj); };
86
86
UMF_ASSIGN_OP (ops, T, alloc, UMF_RESULT_ERROR_UNKNOWN);
You can’t perform that action at this time.
0 commit comments