Skip to content
Snippets Groups Projects
Commit c50b6bc3 authored by rswindell's avatar rswindell
Browse files

Removed the cfg->node_num verification from read_main_cfg(), this variable

may be uninitialized or old.
parent a04f7933
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,7 @@ BOOL read_main_cfg(scfg_t* cfg, char* error)
get_str(cfg->sys_pass,instream);
get_int(cfg->sys_nodes,instream);
#if 0 /* removed Jan-10-2003: cfg->node_num may be old or uninitialized */
if(!cfg->sys_nodes || cfg->sys_nodes<cfg->node_num || cfg->sys_nodes>MAX_NODES) {
if(!cfg->sys_nodes)
sprintf(error,"Total nodes on system must be non-zero.");
......@@ -212,6 +213,7 @@ BOOL read_main_cfg(scfg_t* cfg, char* error)
fclose(instream);
return(FALSE);
}
#endif
for(i=0;i<cfg->sys_nodes;i++) {
get_str(cfg->node_path[i],instream);
......
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