diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-18 16:10:48 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-18 16:10:48 -0700 |
| commit | a8a92c5b89b51f6786d6e5cb41a588197b6afabb (patch) | |
| tree | 9004ad82f5660f889635e5ccf5ede58be0f4922d /node/Identity.cpp | |
| parent | cea3f2815589f956f699ad589a66c9d09f406ee9 (diff) | |
| download | infinitytier-a8a92c5b89b51f6786d6e5cb41a588197b6afabb.tar.gz infinitytier-a8a92c5b89b51f6786d6e5cb41a588197b6afabb.zip | |
A whole lot of Sqlite netconf master work, and some fixes elsewhere in the code.
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)) |
