From 28bb9c44052b075c924899d5ea3743469f350a98 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 2 Sep 2015 16:57:31 -0700 Subject: [PATCH] burst_buffer/cray: Fix config prob w/o slurmdbd --- src/plugins/burst_buffer/cray/burst_buffer_cray.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/burst_buffer/cray/burst_buffer_cray.c b/src/plugins/burst_buffer/cray/burst_buffer_cray.c index 839cb93c986..6a125976928 100644 --- a/src/plugins/burst_buffer/cray/burst_buffer_cray.c +++ b/src/plugins/burst_buffer/cray/burst_buffer_cray.c @@ -940,8 +940,10 @@ static void _set_assoc_mgr_ptrs(bb_alloc_t *bb_alloc) &bb_alloc->assoc_ptr, true) == SLURM_SUCCESS) { xfree(bb_alloc->assocs); - bb_alloc->assocs = - xstrdup_printf(",%u,", bb_alloc->assoc_ptr->id); + if (bb_alloc->assoc_ptr) { + bb_alloc->assocs = + xstrdup_printf(",%u,", bb_alloc->assoc_ptr->id); + } } memset(&qos_rec, 0, sizeof(slurmdb_qos_rec_t)); -- GitLab