diff --git a/ldms/src/sampler/netlink/netlink-notifier.c b/ldms/src/sampler/netlink/netlink-notifier.c index 6a661b214e..7a4d978c66 100644 --- a/ldms/src/sampler/netlink/netlink-notifier.c +++ b/ldms/src/sampler/netlink/netlink-notifier.c @@ -3309,7 +3309,7 @@ static jbuf_t make_process_end_data_slurm(forkstat_t *ft, const struct proc_info int i, iend; iend = sizeof(slurm_env_end_default)/sizeof(slurm_env_end_default[0]); for (i = 0 ; i < iend; i++) - if (add_env_attr(&slurm_env_start_default[i], &jb, info, ft)) + if (add_env_attr(&slurm_env_end_default[i], &jb, info, ft)) goto out_1; jb = jbuf_append_str(jb, "\"task_id\":" NULL_STEP_ID ","