1
0
Fork 0

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:
Sjoerd van der Berg 2003-03-02 21:08:27 +00:00
parent 4753d75cbf
commit 5fb73510fe

View file

@ -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;
}