From 94e41a8466f024edb6eb069c0c5f8025599cf116 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 23 May 2019 17:51:46 +1000 Subject: [PATCH] ctdb-common: Avoid warning for potentially uninitialised pointers s_list generates a warning, but initialise them both. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/common/run_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/common/run_event.c b/ctdb/common/run_event.c index 27e7ad6055e..3682f778768 100644 --- a/ctdb/common/run_event.c +++ b/ctdb/common/run_event.c @@ -285,8 +285,8 @@ int run_event_list(struct run_event_context *run_ctx, TALLOC_CTX *mem_ctx, struct run_event_script_list **output) { - struct event_script_list *s_list; - struct run_event_script_list *script_list; + struct event_script_list *s_list = NULL; + struct run_event_script_list *script_list = NULL; unsigned int i; int ret; -- 2.47.3