From 2361a1a53e93ededcf99289650124cf7a2b064d4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 Jun 2022 16:02:33 +0900 Subject: Get rid of a nasal demon On platforms not having `typeof`, `ccan_container_off_var()` macro subtracts the pointer variable from the member address pointed by that variable. --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index bde8937486..def997d201 100644 --- a/variable.c +++ b/variable.c @@ -2620,7 +2620,7 @@ autoload_apply_constants(VALUE _arguments) struct autoload_load_arguments *arguments = (struct autoload_load_arguments*)_arguments; - struct autoload_const *autoload_const; + struct autoload_const *autoload_const = 0; // for ccan_container_off_var() struct autoload_const *next; // We use safe iteration here because `autoload_const_set` will eventually invoke -- cgit v1.2.3