From e2194c6a0b0446d2decb4e84aedf44e5029e792a Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Mon, 28 Jul 2014 13:57:10 -0700
Subject: [PATCH] Fix bad job array data pointer

Needed to initialize the array_bitmap in the job record
---
 src/common/slurm_protocol_pack.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/common/slurm_protocol_pack.c b/src/common/slurm_protocol_pack.c
index f495e66d58a..3314f6ab28d 100644
--- a/src/common/slurm_protocol_pack.c
+++ b/src/common/slurm_protocol_pack.c
@@ -4636,8 +4636,10 @@ static void _xlate_task_str(job_info_t *job_ptr)
 	char *in_buf = job_ptr->array_task_str;
 	char *out_buf = NULL;
 
-	if (!in_buf)
+	if (!in_buf) {
+		job_ptr->array_bitmap = NULL;
 		return;
+	}
 
 	i = strlen(in_buf);
 	task_bitmap = bit_alloc(i * 4);
-- 
GitLab