ADDED .fossil-settings/ignore-glob Index: .fossil-settings/ignore-glob ================================================================== --- /dev/null +++ .fossil-settings/ignore-glob @@ -0,0 +1,15 @@ +Makefile +aclocal.m4 +cackey.o +cackey_g.o +config.guess +config.h +config.h.in +config.log +config.status +config.sub +configure +install-sh +libcackey_g.so +libcackey.so +libcackey.syms Index: cackey.c ================================================================== --- cackey.c +++ cackey.c @@ -268,10 +268,16 @@ 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"); Index: leakcheck/leakcheck ================================================================== --- leakcheck/leakcheck +++ leakcheck/leakcheck @@ -9,11 +9,11 @@ echo " filename Name of file containing debugging output" >&2 exit 1 fi -egrep '(MALLOC|FREE|REALLOC)' "${LEAKCHECKFILE}" | sed 's@^.*FREE(\(0x[0-9a-f]*\)).*$@free \1@;s@^.*MALLOC() = @malloc @;s@^.*REALLOC(\(0x[0-9a-f]*\)) = @realloc \1 @' > "${TMPFILE}" +egrep '(MALLOC|FREE|REALLOC)' "${LEAKCHECKFILE}" | sed 's@^.*FREE(\([x0-9a-fA-F]*\)).*$@free \1@;s@^.*MALLOC() = @malloc @;s@^.*REALLOC(\([x0-9a-fA-F]*\)) = @realloc \1 @' > "${TMPFILE}" cat "${TMPFILE}" | while read op addr newaddr; do case "${op}" in malloc) if [ -z "${alloclist}" ]; then