Permalink
Browse files

Avoid undefined warning on 5.16

  • Loading branch information...
1 parent 0cfc950 commit 5218daf7c5d8ad12d4858b9a5afd434b15227dcf @abh committed Jun 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Combust/Util.pm
View
1 lib/Combust/Util.pm
@@ -33,6 +33,7 @@ sub run {
sub utf8_safe {
my $text = shift;
+ return unless defined $text;
$text = Encode::decode("windows-1252", $text)
unless utf8::is_utf8($text)
or utf8::decode($text);

0 comments on commit 5218daf

Please sign in to comment.