cpp: Fix init of string from null
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 14 Oct 2016 14:23:57 +0000 (16:23 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 14 Oct 2016 14:23:57 +0000 (16:23 +0200)
commit1e8c34a9192956bb2fe96a7a6a76ff59de8d1c0c
tree2a2725d29633a5e76116e14ee56d4750238b6c02
parentf526d0e22e8b881ccbca66b46a0e1b68bbc4cd6b
cpp: Fix init of string from null

* lang/cpp/src/key.cpp (UserID::addrSpecFromString): Check return
value before creating the string.
lang/cpp/src/key.cpp