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

Bugfix: zero the global_buf if no global_t pointer passed to sbbs_read_ini().

parent c18f7ac4
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,10 @@ void sbbs_read_ini(
char value[INI_MAX_VALUE_LEN];
global_startup_t global_buf;
if(global==NULL)
if(global==NULL) {
memset(&global_buf,0,sizeof(global_buf));
global=&global_buf;
}
read_ini_globals(fp, global);
......
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