diff --git a/misc.c b/misc.c index b6ca80e..4d0a89d 100644 --- a/misc.c +++ b/misc.c @@ -894,7 +894,7 @@ long I, VAL; if (logfp && OPENED == stdin) fclose(logfp); } else { - if (logfp) + if (logfp && OPENED == stdin) IGNORE(fputs(INLINE+1, logfp)); else if (!isatty(0)) IGNORE(fputs(INLINE+1, stdout));