Check for an empty string for debug logging file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@702
This commit is contained in:
parent
4753d75cbf
commit
5fb73510fe
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ static void LOG_Destroy(Section* sec) {
|
|||
static void LOG_Init(Section * sec) {
|
||||
Section_prop * sect=static_cast<Section_prop *>(sec);
|
||||
const char * blah=sect->Get_string("logfile");
|
||||
if(blah && (debuglog = fopen(blah,"wt+"))){
|
||||
if(blah && blah[0] &&(debuglog = fopen(blah,"wt+"))){
|
||||
}else{
|
||||
debuglog=0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue