From: Thomas Schwinge Date: Wed, 21 May 2008 20:54:34 +0000 (+0200) Subject: Avoid ``uninitialized value'' warning when there actually is no difference between... X-Git-Tag: 2.47~1 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/1e16ab178d3cfa60818b5a64c35357735e985504 Avoid ``uninitialized value'' warning when there actually is no difference between the two versions. --- diff --git a/IkiWiki/Plugin/editdiff.pm b/IkiWiki/Plugin/editdiff.pm index 46eb1168e..2a70ca0b8 100644 --- a/IkiWiki/Plugin/editdiff.pm +++ b/IkiWiki/Plugin/editdiff.pm @@ -25,7 +25,7 @@ sub diff ($$) { #{{{ print DIFFIN $content; close DIFFIN; - my $ret; + my $ret=''; while () { if (defined $ret) { $ret.=$_;