Diff

Differences From Artifact [8554f45411]:

To Artifact [6f86c48f0e]:


   266    266   		logfile = strchr(logfile, '=');
   267    267   		if (logfile == NULL) {
   268    268   			logfile = getenv("CACKEY_DEBUG_LOGFILE");
   269    269   		} else {
   270    270   			logfile++;
   271    271   		}
   272    272   	}
          273  +
          274  +#ifdef CACKEY_DEBUG_LOGFILE
          275  +	if (logfile == NULL) {
          276  +		logfile = CACKEY_DEBUG_LOGFILE;
          277  +	}
          278  +#endif
   273    279   
   274    280   	if (logfile != NULL) {
   275    281   		CACKEY_DEBUG_PRINTF("Found log file: %s", logfile);
   276    282   
   277    283   		fd = fopen(logfile, "a");
   278    284   	}
   279    285