summaryrefslogtreecommitdiffstats
path: root/sord/sordmm.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 11:05:24 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 11:06:32 +0100
commitb24584980534acef1b10e4bf8182fe347465c70e (patch)
tree13f85228522535581e3a0dc61fccc27745526308 /sord/sordmm.hpp
parent59b01120d460bf10e95c5f1319fd2ad1a8eb7ab7 (diff)
downloadsord-b24584980534acef1b10e4bf8182fe347465c70e.tar.gz
sord-b24584980534acef1b10e4bf8182fe347465c70e.tar.bz2
sord-b24584980534acef1b10e4bf8182fe347465c70e.zip
C++: Intialize variable
Diffstat (limited to 'sord/sordmm.hpp')
-rw-r--r--sord/sordmm.hpp2
1 files changed, 1 insertions, 1 deletions
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<const char*>(sord_node_get_string(_c_obj)),
&endptr,
10);