Skip to content
Snippets Groups Projects
Commit 5f62f04f authored by Morris Jette's avatar Morris Jette
Browse files

Fix for uninitialized variable

parent 8fcaaf58
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,7 @@ int slurm_set_cpuset(char *base, char *path, pid_t pid, size_t size,
* "mems" must be set before any tasks can be added. */
snprintf(file_path, sizeof(file_path), "%s/%smems",
base, cpuset_prefix);
memset(mstr, 0, sizeof(mstr));
fd = open(file_path, O_RDONLY);
if (fd < 0) {
error("open(%s): %m", file_path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment