From b24584980534acef1b10e4bf8182fe347465c70e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Dec 2020 11:05:24 +0100 Subject: C++: Intialize variable --- sord/sordmm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sord/sordmm.hpp') diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index 80bfd62..4cfe372 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -403,7 +403,7 @@ inline int Node::to_int() const { assert(is_int()); - char* endptr; + char* endptr = nullptr; return strtol(reinterpret_cast(sord_node_get_string(_c_obj)), &endptr, 10); -- cgit v1.2.1