Browse Source

lightningd: fix crash on rpc.invoice with clang

There is a type mismatch of variable argument.
ppa-0.6.1
Hiroki Gondo 7 years ago
committed by Christian Decker
parent
commit
552b00e2c1
  1. 2
      lightningd/param.h

2
lightningd/param.h

@ -96,7 +96,7 @@ typedef bool(*param_cb)(const char *buffer, const jsmntok_t *tok, void *arg);
(arg) + 0*sizeof((cb)((const char *)NULL, \
(const jsmntok_t *)NULL, \
(arg)) == true), \
((void)((*arg) = (def)), 0)
((void)((*arg) = (def)), (size_t)0)
/*
* For when you want an optional raw token.

Loading…
Cancel
Save