Skip to content
Snippets Groups Projects
Commit 87400ab5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Check result of sbbs_write_ini() - CID 451084

And display an error message upon failure.
parent 16f0c51f
No related branches found
No related tags found
No related merge requests found
......@@ -2495,7 +2495,7 @@ void bail(int code)
,&run_services
,&services_startup
);
sbbs_write_ini(
if(!sbbs_write_ini(
fp
,&cfg
,&global_startup
......@@ -2509,7 +2509,8 @@ void bail(int code)
,&mail_startup
,run_services
,&services_startup
);
))
uifc.msgf("Error writing %s", cfg.filename);
iniCloseFile(fp);
}
uifc.pop(NULL);
......
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