diff options
Diffstat (limited to 'node/Identity.cpp')
-rw-r--r-- | node/Identity.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/Identity.cpp b/node/Identity.cpp index 6c843cc2..8765da51 100644 --- a/node/Identity.cpp +++ b/node/Identity.cpp @@ -155,6 +155,9 @@ std::string Identity::toString(bool includePrivate) const bool Identity::fromString(const char *str) { + if (!str) + return false; + char *saveptr = (char *)0; char tmp[4096]; if (!Utils::scopy(tmp,sizeof(tmp),str)) |