From: Martin Schwenke Date: Thu, 30 May 2019 05:33:05 +0000 (+1000) Subject: ctdb-tests: Avoid potentially uninitialised data X-Git-Tag: ldb-2.0.5~470 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b4a3a0d316954d65617ee189dffa9c4269f42e;p=thirdparty%2Fsamba.git ctdb-tests: Avoid potentially uninitialised data Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- 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) {