Diff

Differences From Artifact [6307d2f89c]:

To Artifact [5df163c7aa]:


   244    244   		logfile = strchr(logfile, '=');
   245    245   		if (logfile == NULL) {
   246    246   			logfile = getenv("CACKEY_DEBUG_LOGFILE");
   247    247   		} else {
   248    248   			logfile++;
   249    249   		}
   250    250   	}
          251  +
          252  +#ifdef CACKEY_DEBUG_LOGFILE
          253  +	if (logfile == NULL) {
          254  +		logfile = CACKEY_DEBUG_LOGFILE;
          255  +	}
          256  +#endif
   251    257   
   252    258   	if (logfile != NULL) {
   253    259   		CACKEY_DEBUG_PRINTF("Found log file: %s", logfile);
   254    260   
   255    261   		fd = fopen(logfile, "a");
   256    262   	}
   257    263