diff options
| author | fukachan <fukachan> | 2003-01-04 00:28:35 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-01-04 00:28:35 +0000 |
| commit | 043e1fd9359f588df8041b5c4d293b8a5b7b3b51 (patch) | |
| tree | 516fccce88f65c888d32dfabbff7f6b573b2c4a9 /fml | |
| parent | 1c30e77b6d452bab1d69c4ceb7e1b729d76f8a4d (diff) | |
| download | fml8-043e1fd9359f588df8041b5c4d293b8a5b7b3b51.tar.gz fml8-043e1fd9359f588df8041b5c4d293b8a5b7b3b51.tar.bz2 fml8-043e1fd9359f588df8041b5c4d293b8a5b7b3b51.zip | |
FNF-ify (defined($fh))
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/Tie/JournaledFile.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fml/lib/Tie/JournaledFile.pm b/fml/lib/Tie/JournaledFile.pm index 6e3f0cd0..7d3f6d6d 100644 --- a/fml/lib/Tie/JournaledFile.pm +++ b/fml/lib/Tie/JournaledFile.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: JournaledFile.pm,v 1.23 2002/09/22 14:57:08 fukachan Exp $ +# $FML: JournaledFile.pm,v 1.24 2002/12/22 03:37:15 fukachan Exp $ # package Tie::JournaledFile; @@ -226,7 +226,7 @@ sub get_all_values_as_hash_ref use IO::File; my $fh = new IO::File; - if (-f $file) { + if (-f $file && defined $fh) { $fh->open($file, "r"); if (defined $fh) { |
