From 798c4b73c486fc0a498b1e5e4d0ab2199814d954 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 2 Apr 2017 09:36:29 +0930 Subject: [PATCH] lightningd/htlc_end: fix key for stricter compiler. We *should* split the struct into key and data, rather than only comparing the key parts in the htlc_end_eq function. But meanwhile, this fixes the code. Signed-off-by: Rusty Russell --- lightningd/htlc_end.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/htlc_end.c b/lightningd/htlc_end.c index 59cde8a23..6a0b208e3 100644 --- a/lightningd/htlc_end.c +++ b/lightningd/htlc_end.c @@ -22,7 +22,7 @@ struct htlc_end *find_htlc_end(const struct htlc_end_map *map, enum htlc_end_type which_end) { const struct htlc_end key = { which_end, (struct peer *)peer, htlc_id, - NULL }; + 0, NULL, NULL }; return htlc_end_map_get(map, &key); }