Skip to content
Snippets Groups Projects
Commit c0e2a12e authored by Danny Auble's avatar Danny Auble
Browse files

minor fix

parent d38070c8
No related branches found
No related tags found
No related merge requests found
...@@ -671,6 +671,8 @@ extern int removable_set_mps(char *mps) ...@@ -671,6 +671,8 @@ extern int removable_set_mps(char *mps)
if (!mps) if (!mps)
return SLURM_ERROR; return SLURM_ERROR;
memset(coords, 0, sizeof(coords));
while (mps[j] != '\0') { while (mps[j] != '\0') {
int mid = j + cluster_dims + 1; int mid = j + cluster_dims + 1;
int fin = mid + cluster_dims + 1; int fin = mid + cluster_dims + 1;
...@@ -727,7 +729,7 @@ extern int reset_all_removed_mps() ...@@ -727,7 +729,7 @@ extern int reset_all_removed_mps()
static int start[SYSTEM_DIMENSIONS]; static int start[SYSTEM_DIMENSIONS];
static int end[SYSTEM_DIMENSIONS]; static int end[SYSTEM_DIMENSIONS];
static int dim = 0; static int dim = 0;
int coords[cluster_dims]; int coords[SYSTEM_DIMENSIONS];
if (!dim) { if (!dim) {
memset(start, 0, sizeof(start)); memset(start, 0, sizeof(start));
...@@ -735,6 +737,7 @@ extern int reset_all_removed_mps() ...@@ -735,6 +737,7 @@ extern int reset_all_removed_mps()
end[dim] = DIM_SIZE[dim] - 1; end[dim] = DIM_SIZE[dim] - 1;
} }
memset(coords, 0, sizeof(coords));
_internal_removable_set_mps(A, start, end, coords, 0); _internal_removable_set_mps(A, start, end, coords, 0);
return SLURM_SUCCESS; return SLURM_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment