From f5fcbd193a9af35997b40b9d5a705ebb430ce70b Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 1 May 2020 18:21:33 +0200 Subject: [PATCH] Fix uninitialised pointers. Whoopsies! --- include/wrenpp/vm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wrenpp/vm.hpp b/include/wrenpp/vm.hpp index 39e0acc..d649aa8 100644 --- a/include/wrenpp/vm.hpp +++ b/include/wrenpp/vm.hpp @@ -54,8 +54,8 @@ namespace wren { void* (*reallocate_fn)(void*, std::size_t) {nullptr}; const char* (*resolve_module_fn)(Configuration&, VM*, const char*, const char*) {nullptr}; char* (*load_module_fn)(Configuration&, VM*, const char*) {nullptr}; - foreign_method_t (*foreign_method_fn)(Configuration&, VM*, const char*, const char*, bool, const char*); - foreign_class_t (*foreign_class_fn)(Configuration&, VM*, const char*, const char*); + foreign_method_t (*foreign_method_fn)(Configuration&, VM*, const char*, const char*, bool, const char*) {nullptr}; + foreign_class_t (*foreign_class_fn)(Configuration&, VM*, const char*, const char*) {nullptr}; Configuration* config_obj {nullptr}; VM* owner {nullptr};