Bug: load_projects crashes if there is a projects.txt file to load
Danger: Fatal - Mud will crash during boot.
Found by: Tiak
Fixed by: Samson
Locate and remove:
fclose( fp );
fp = NULL;
Deceptively simple, but a real pain in the ass. The load_projects function opens the file pointer but the way in which it loops over the ones to load in read_project causes the file pointer to be nulled there. Attempting to fclose a null pointer results in undefined behavior. Unfortunately on linux systems this results in a crash.
This fix invalidates the one posted here: http://www.smaugmuds.org/index.php?a=topic&t=2182