Commit 3ed10a0d authored by rswindell's avatar rswindell
Browse files

Set size of scfg_t before calling load_cfg().

parent 73af0c54
......@@ -635,6 +635,8 @@ int main(int argc, char **argv)
exit(1);
}
memset(&scfg,0,sizeof(scfg));
scfg.size=sizeof(scfg);
SAFECOPY(scfg.ctrl_dir,p);
printf("Reading configuration files from %s\n",scfg.ctrl_dir);
if(!load_cfg(&scfg,NULL,TRUE,error)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment