From: eeb Date: Fri, 4 Sep 2009 17:13:39 +0000 (+0000) Subject: Avoid compiler warning of an uninitialised local - the code is safe but the X-Git-Tag: v1_9_260~28 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=572e58bfa6c29fa034efc9f27dcc52ec9cdfcc4b;hp=d3e7dd65e83f1c840113c286effd074b924b177b;p=fs%2Flustre-release.git Avoid compiler warning of an uninitialised local - the code is safe but the compiler can't tell. --- 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);