From: Martin Schwenke Date: Thu, 23 May 2019 07:51:46 +0000 (+1000) Subject: ctdb-common: Avoid warning for potentially uninitialised pointers X-Git-Tag: ldb-2.0.5~480 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94e41a8466f024edb6eb069c0c5f8025599cf116;p=thirdparty%2Fsamba.git 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 --- 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;