From ccd0c2163a957a0c70d6fa1493bf64d572ce0b7f Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Wed, 19 Jan 2011 17:52:22 +0000
Subject: [PATCH] fix for bad var

---
 src/plugins/select/bluegene/plugin/state_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/select/bluegene/plugin/state_test.c b/src/plugins/select/bluegene/plugin/state_test.c
index 5e6a0e73a9f..52e0cadb694 100644
--- a/src/plugins/select/bluegene/plugin/state_test.c
+++ b/src/plugins/select/bluegene/plugin/state_test.c
@@ -577,7 +577,7 @@ extern int check_block_bp_states(char *bg_block_id, bool slurmctld_locked)
 	/* If no bg_record->bg_block_id we don't need to check this
 	   since this block isn't really created.
 	*/
-	if (!bg_record->bg_block_id)
+	if (!bg_block_id)
 		return SLURM_SUCCESS;
 
 	if ((rc = bridge_get_block(bg_block_id, &block_ptr)) != STATUS_OK) {
-- 
GitLab