summaryrefslogtreecommitdiff
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
parent71555b595167abf77c71c1b4b8c26669d0b0130e (diff)
Avoid ``uninitialized value'' warning when there actually is no difference between the two versions.
-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.=$_;