From e4e0fcde176e351d6f32a9d1d2a851801c1ebefc Mon Sep 17 00:00:00 2001 From: David Bigagli <david@schedmd.com> Date: Tue, 29 Jul 2014 15:38:44 -0700 Subject: [PATCH] Fix a bad initialization. --- src/common/slurm_protocol_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c index 55f34cd8076..5a097993093 100644 --- a/src/common/slurm_protocol_api.c +++ b/src/common/slurm_protocol_api.c @@ -2224,10 +2224,9 @@ char *slurm_get_task_prolog(void) uint16_t * slurm_get_srun_port_range(void) { - uint16_t *ports; + uint16_t *ports = NULL; slurm_ctl_conf_t *conf; - *ports = 0; if (slurmdbd_conf) { } else { conf = slurm_conf_lock(); -- GitLab