From a8a92c5b89b51f6786d6e5cb41a588197b6afabb Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 18 Mar 2015 16:10:48 -0700 Subject: A whole lot of Sqlite netconf master work, and some fixes elsewhere in the code. --- node/Identity.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node/Identity.cpp') 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)) -- cgit v1.2.3