diff --git a/src/plugins/select/bluegene/ba_bgq/block_allocator.c b/src/plugins/select/bluegene/ba_bgq/block_allocator.c
index 5c1aa7c48a311498e740be861ccefd469de15fcb..9897e5365895e1da33c77d8210c7f1935f1b8d79 100644
--- a/src/plugins/select/bluegene/ba_bgq/block_allocator.c
+++ b/src/plugins/select/bluegene/ba_bgq/block_allocator.c
@@ -230,7 +230,7 @@ extern void ba_create_system()
 	*/
 	ba_main_grid_array = xmalloc(sizeof(ba_mp_t *) *
 				     ba_main_geo_system->total_size);
-
+	i = 0;
 	ba_main_grid = (ba_mp_t****)
 		xmalloc(sizeof(ba_mp_t***) * DIM_SIZE[A]);
 	for (a = 0; a < DIM_SIZE[A]; a++) {