Browse Source

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)
fee-tracking2
lisa neigut 6 years ago
committed by Christian Decker
parent
commit
45b07e7e89
  1. 1
      lightningd/jsonrpc.c

1
lightningd/jsonrpc.c

@ -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…
Cancel
Save