Whamcloud - gitweb
Avoid compiler warning of an uninitialised local - the code is safe but the
[fs/lustre-release.git] / lnet / selftest / console.c
index 12a9f05..c482748 100644 (file)
@@ -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);