projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4f445d8
)
If write() is passed an undef value to write, just return 0. Fixes a warning in...
Andy Grundman [Fri, 5 Dec 2008 08:33:15 +0000 (08:33 +0000)]
lib/Catalyst/Engine.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Engine.pm
b/lib/Catalyst/Engine.pm
index
8d1bdbe
..
df046cb
100644
(file)
--- a/
lib/Catalyst/Engine.pm
+++ b/
lib/Catalyst/Engine.pm
@@
-623,6
+623,8
@@
sub write {
$self->{_prepared_write} = 1;
}
+ return 0 if !defined $buffer;
+
my $len = length($buffer);
my $wrote = syswrite STDOUT, $buffer;