Skip to content

Commit

Permalink
fixup! plugin: Fix hanging hook calls if the plugin dies
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Feb 20, 2020
1 parent 57892a9 commit b2f1fe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightningd/plugin_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ static void plugin_hook_callback(const char *buffer, const jsmntok_t *toks,
* to identify no-result responses. So make sure both are
* set */
resulttok = NULL;
/* cppcheck isn't smart enough to notice that `resrestok`
* doesn't need to be initialized in the expression
* initializing `cont`, so set it to NULL to shut it up. */
resrestok = NULL;
}

Expand Down

0 comments on commit b2f1fe5

Please sign in to comment.