tracer crashes when no output file selected, simple workaround (FIXME if you know how to do it better)

This commit is contained in:
CaH4e3 2010-08-16 07:22:06 +00:00
parent 3513be6f7d
commit 27134c26bc
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ void BeginLoggingSequence(void){
if(!PromptForCDLogger())return; //do nothing if user selected no and CD Logger is needed if(!PromptForCDLogger())return; //do nothing if user selected no and CD Logger is needed
if(logtofile){ if(logtofile){
if(logfilename == NULL) ShowLogDirDialog();
LOG_FP = fopen(logfilename,"w"); LOG_FP = fopen(logfilename,"w");
if(LOG_FP == NULL){ if(LOG_FP == NULL){
sprintf(str,"Error Opening File %s",logfilename); sprintf(str,"Error Opening File %s",logfilename);