Skip to content
Snippets Groups Projects
Commit 3f76724d authored by deuce's avatar deuce
Browse files

Fix segfault in patch from Anonymous.

Only set values in the bbs structure if it's actually there.
parent bf897acf
No related branches found
No related tags found
No related merge requests found
......@@ -1648,8 +1648,10 @@ int main(int argc, char **argv)
if(!winsock_startup())
return(1);
bbs->hidepopups = default_hidepopups;
bbs->nostatus = default_nostatus;
if (bbs) {
bbs->hidepopups = default_hidepopups;
bbs->nostatus = default_nostatus;
}
load_font_files();
while((!quitting) && (bbs!=NULL || (bbs=show_bbslist(last_bbs, FALSE))!=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