aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/attachment.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm
index ed1cd61fe..53d826178 100644
--- a/IkiWiki/Plugin/attachment.pm
+++ b/IkiWiki/Plugin/attachment.pm
@@ -142,6 +142,7 @@ sub formbuilder (@) { #{{{
if (! defined $fh || ! ref $fh) {
# even that doesn't always work,
# fall back to opening the tempfile
+ $fh=undef;
open($fh, "<", $tempfile) || error("failed to open $tempfile: $!");
}
}