diff --git a/configure.ac b/configure.ac index 9af9a2928..98adeae72 100644 --- a/configure.ac +++ b/configure.ac @@ -104,7 +104,7 @@ fi AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign clearenv]) +AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign]) AC_PROG_INSTALL AC_PROG_MAKE_SET ACX_PTHREAD diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 49f63bda2..fe6955ba4 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1829,10 +1829,6 @@ torrentCallScript( tr_torrent * tor, const char * script ) char buf[128]; const time_t now = tr_time( ); -#ifdef HAVE_CLEARENV - clearenv( ); -#endif - tr_setenv( "TR_APP_VERSION", SHORT_VERSION_STRING, 1 ); tr_snprintf( buf, sizeof( buf ), "%d", tr_torrentId( tor ) );