aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editdiff.pm
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2008-05-21 22:54:34 +0200
committerJoey Hess <joey@kodama.kitenet.net>2008-05-25 14:25:34 -0400
commit1e16ab178d3cfa60818b5a64c35357735e985504 (patch)
tree2cbb4b80bb474089ddb6aaab53dd4abc710fa6cf /IkiWiki/Plugin/editdiff.pm
parent71555b595167abf77c71c1b4b8c26669d0b0130e (diff)
downloadikiwiki-1e16ab178d3cfa60818b5a64c35357735e985504.tar
ikiwiki-1e16ab178d3cfa60818b5a64c35357735e985504.tar.gz
Avoid ``uninitialized value'' warning when there actually is no difference between the two versions.
Diffstat (limited to 'IkiWiki/Plugin/editdiff.pm')
-rw-r--r--IkiWiki/Plugin/editdiff.pm2
1 files changed, 1 insertions, 1 deletions
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 (<DIFFOUT>) {
if (defined $ret) {
$ret.=$_;