From 572e58bfa6c29fa034efc9f27dcc52ec9cdfcc4b Mon Sep 17 00:00:00 2001 From: eeb Date: Fri, 4 Sep 2009 17:13:39 +0000 Subject: [PATCH 1/1] Avoid compiler warning of an uninitialised local - the code is safe but the compiler can't tell. --- lnet/selftest/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/selftest/console.c b/lnet/selftest/console.c index 12a9f05..c482748 100644 --- a/lnet/selftest/console.c +++ b/lnet/selftest/console.c @@ -1711,7 +1711,7 @@ lstcon_session_new(char *name, int key, rc = lstcon_rpc_pinger_start(); if (rc != 0) { - lstcon_batch_t *bat; + lstcon_batch_t *bat = NULL; lstcon_batch_find(LST_DEFAULT_BATCH, &bat); lstcon_batch_destroy(bat); -- 1.8.3.1