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

refresh_cfg now checks the return value of getnodedat().

parent 39d5cfac
No related branches found
No related tags found
No related merge requests found
......@@ -1096,10 +1096,7 @@ void DLLCALL refresh_cfg(scfg_t* cfg)
node_t node;
for(i=0;i<cfg->sys_nodes;i++) {
file=-1;
memset(&node,0,sizeof(node));
getnodedat(cfg,i+1,&node,&file);
if(file==-1)
if(getnodedat(cfg,i+1,&node,&file)!=0)
continue;
node.misc|=NODE_RRUN;
if(putnodedat(cfg,i+1,&node,file))
......
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