From 1292b518beef868ddfc2ec750a5eb0e74c5156b6 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Thu, 18 Aug 2022 17:42:33 -0500 Subject: [PATCH] Add missing result initialization in buffer_allocator_call --- src/wrap_mempool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrap_mempool.cpp b/src/wrap_mempool.cpp index cb711b1b..46845594 100644 --- a/src/wrap_mempool.cpp +++ b/src/wrap_mempool.cpp @@ -253,7 +253,7 @@ namespace pyopencl { inline buffer *allocate_from_buffer_allocator(buffer_allocator_base &alloc, size_t size) { - cl_mem mem; + cl_mem mem = nullptr; int try_count = 0; while (try_count < 2) { -- GitLab