1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

ctdb-common: Avoid warning for potentially uninitialised pointers

s_list generates a warning, but initialise them both.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2019-05-23 17:51:46 +10:00 committed by Amitay Isaacs
parent cf9199f425
commit 94e41a8466

View File

@ -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;