From 891dee739d31c0a47a32f10aaaae6429e48ded88 Mon Sep 17 00:00:00 2001 From: Mark Beckwith Date: Wed, 11 Jul 2018 13:32:41 -0500 Subject: [PATCH] params: Fix arg size Fixes #1668 Reported-by: @jsarenik Signed-off-by: Mark Beckwith --- lightningd/params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/params.h b/lightningd/params.h index aabb7d7fa..21e216e35 100644 --- a/lightningd/params.h +++ b/lightningd/params.h @@ -65,7 +65,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), \ - 0 + (size_t)0 /* * Similar to above but for optional parameters. * @arg must be the address of a pointer. If found during parsing, it will be