From 18b4a3a0d316954d65617ee189dffa9c4269f42e Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 30 May 2019 15:33:05 +1000 Subject: [PATCH] ctdb-tests: Avoid potentially uninitialised data Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/src/run_event_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/tests/src/run_event_test.c b/ctdb/tests/src/run_event_test.c index 2d0053c459a..8b5dcd7beef 100644 --- a/ctdb/tests/src/run_event_test.c +++ b/ctdb/tests/src/run_event_test.c @@ -167,8 +167,8 @@ int main(int argc, const char **argv) { TALLOC_CTX *mem_ctx; struct tevent_context *ev; - struct run_proc_context *run_proc_ctx; - struct run_event_context *run_ctx; + struct run_proc_context *run_proc_ctx = NULL; + struct run_event_context *run_ctx = NULL; int ret; if (argc < 3) {