Check-in [0e0490e060]
Overview
Comment:Added support for compiling in a default debug log file
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0e0490e0608e514b03863d8723e2b15ac2325636
User & Date: rkeene on 2013-01-18 15:11:02
Other Links: manifest | tags
Context
2013-08-14
04:21
Added ignores for generated files check-in: 00fbb45437 user: rkeene tags: trunk
2013-01-18
15:11
Added support for compiling in a default debug log file check-in: 0e0490e060 user: rkeene tags: trunk
2013-01-15
14:20
Updated to make "leakcheck" more tolerant of %p formats check-in: 33a93aab41 user: rkeene tags: trunk
Changes

Modified cackey.c from [6307d2f89c] to [5df163c7aa].

244
245
246
247
248
249
250






251
252
253
254
255
256
257
		logfile = strchr(logfile, '=');
		if (logfile == NULL) {
			logfile = getenv("CACKEY_DEBUG_LOGFILE");
		} else {
			logfile++;
		}
	}







	if (logfile != NULL) {
		CACKEY_DEBUG_PRINTF("Found log file: %s", logfile);

		fd = fopen(logfile, "a");
	}








>
>
>
>
>
>







244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
		logfile = strchr(logfile, '=');
		if (logfile == NULL) {
			logfile = getenv("CACKEY_DEBUG_LOGFILE");
		} else {
			logfile++;
		}
	}

#ifdef CACKEY_DEBUG_LOGFILE
	if (logfile == NULL) {
		logfile = CACKEY_DEBUG_LOGFILE;
	}
#endif

	if (logfile != NULL) {
		CACKEY_DEBUG_PRINTF("Found log file: %s", logfile);

		fd = fopen(logfile, "a");
	}