jsonrpc: fix cppcheck warning for potential null pointer deref

cppcheck was failing with a warning for a null pointer deref at this
line, this makes it stop complaining (and lets make check-source
succeed)
This commit is contained in:
lisa neigut 2018-10-05 13:21:22 -07:00 committed by Christian Decker
parent 0ecbdf3421
commit 45b07e7e89

View File

@ -319,6 +319,7 @@ static void connection_complete_error(struct json_connection *jcon,
assert(id != NULL);
assert(cmd);
if (cmd->ok)
*(cmd->ok) = false;