Fixed crashing bug related to memwatch and "load last file on memwatch startup"

This commit is contained in:
adelikat 2008-06-23 00:50:20 +00:00
parent 15cc62e978
commit 82cdb6a12e
1 changed files with 1 additions and 0 deletions

View File

@ -537,6 +537,7 @@ void OpenMemwatchRecentFile(int memwRFileNumber)
{
int rnum=memwRFileNumber;
if (rnum > MEMW_MAX_NUMBER_OF_RECENT_FILES) return; //just in case
if (rnum == NULL) return; //If no recent files exist just return. Useful for Load last file on startup (or if something goes screwy)
char* x = memw_recent_files[rnum];
char watchfcontents[2048];