Mailing List Archive

svn commit: r170745 - /spamassassin/trunk/t/regexp_valid.t
Author: dos
Date: Wed May 18 06:28:37 2005
New Revision: 170745

URL: http://svn.apache.org/viewcvs?rev=170745&view=rev
Log:
forgot to take fileno of

Modified:
spamassassin/trunk/t/regexp_valid.t

Modified: spamassassin/trunk/t/regexp_valid.t
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/regexp_valid.t?rev=170745&r1=170744&r2=170745&view=diff
==============================================================================
--- spamassassin/trunk/t/regexp_valid.t (original)
+++ spamassassin/trunk/t/regexp_valid.t Wed May 18 06:28:37 2005
@@ -34,7 +34,8 @@

# create a file descriptior for logging STDERR
# (we do not want warnings for regexps we know are invalid)
-open(LOGERR, ">".IO::File->new_tmpfile()) || die "Cannot create LOGERR temp file";
+my $fh = IO::File->new_tmpfile();
+open(LOGERR, ">".fileno($fh)) || die "Cannot create LOGERR temp file";

# quiet "used only once" warnings
1 if *OLDERR;