From bebb271a27234db9bfc4d1d67b7fd1026470d645 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 27 Jun 2002 23:33:42 +0000 Subject: [PATCH] Fix problem in keeping old build info if not updated. --- src/scontrol/scontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scontrol/scontrol.c b/src/scontrol/scontrol.c index 29107717b0a..52938ee7cba 100644 --- a/src/scontrol/scontrol.c +++ b/src/scontrol/scontrol.c @@ -203,7 +203,7 @@ void print_build (char *build_param) { int error_code; - slurm_ctl_conf_info_msg_t *old_slurm_ctl_conf_ptr = NULL; + static slurm_ctl_conf_info_msg_t *old_slurm_ctl_conf_ptr = NULL; slurm_ctl_conf_info_msg_t *slurm_ctl_conf_ptr = NULL; if (old_slurm_ctl_conf_ptr) { @@ -220,6 +220,7 @@ print_build (char *build_param) } else error_code = slurm_load_ctl_conf ((time_t) NULL, &slurm_ctl_conf_ptr); + if (error_code) { if (quiet_flag != 1) printf ("slurm_load_build error %d\n", error_code); -- GitLab