summaryrefslogtreecommitdiff
path: root/ctdb/common
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-05-23 17:51:46 +1000
committerAmitay Isaacs <amitay@samba.org>2019-06-05 10:25:50 +0000
commit94e41a8466f024edb6eb069c0c5f8025599cf116 (patch)
treee08663099712ed8de3850af0fca5d10893a85334 /ctdb/common
parentcf9199f425ce7f2412f794ebb89bb28f898571c7 (diff)
downloadsamba-94e41a8466f024edb6eb069c0c5f8025599cf116.tar.gz
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>
Diffstat (limited to 'ctdb/common')
-rw-r--r--ctdb/common/run_event.c4
1 files 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;