mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
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:
parent
0ecbdf3421
commit
45b07e7e89
@ -319,6 +319,7 @@ static void connection_complete_error(struct json_connection *jcon,
|
||||
|
||||
assert(id != NULL);
|
||||
|
||||
assert(cmd);
|
||||
if (cmd->ok)
|
||||
*(cmd->ok) = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user