Whamcloud - gitweb
Avoid compiler warning of an uninitialised local - the code is safe but the
authoreeb <eeb>
Fri, 4 Sep 2009 17:13:39 +0000 (17:13 +0000)
committereeb <eeb>
Fri, 4 Sep 2009 17:13:39 +0000 (17:13 +0000)
compiler can't tell.

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) {
 
         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);
 
                 lstcon_batch_find(LST_DEFAULT_BATCH, &bat);
                 lstcon_batch_destroy(bat);