amagnasco / xwpe

Upload of an abandoned ncurses-based programming environment
http://www.identicalsoftware.com/xwpe/
GNU General Public License v2.0
29 stars 6 forks source link

Bug in error on initial memory allocation, before terminal init #9

Closed gbonnema closed 7 years ago

gbonnema commented 7 years ago

Corrected a bug where the program responds to the first memory allocation failing by calling e_error which wants to write an error message to a message window. However, no terminal was initialized yet (neither XWindows term nor text term), so this results in a segfault.

I replaced the original call with a simple printf and return.