From 26d2a4b54dd63dd97a60900aba4b9405f69da266 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Tue, 6 Feb 2018 15:35:58 -0700
Subject: [PATCH] Fix for Coverity

CID 182713
---
 src/slurmctld/read_config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/slurmctld/read_config.c b/src/slurmctld/read_config.c
index 6989d32df35..8f8e8cabf8c 100644
--- a/src/slurmctld/read_config.c
+++ b/src/slurmctld/read_config.c
@@ -1597,6 +1597,7 @@ static void _set_features(struct node_record *old_node_table_ptr,
 		else
 			sep = "";
 		tmp = xstrdup(old_node_ptr->features);
+		save_ptr = NULL;
 		tok = strtok_r(tmp, ",", &save_ptr);
 		while (tok) {
 			if (node_features_g_changible_feature(tok)) {
-- 
GitLab