aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-19 17:57:09 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-19 17:57:09 -0500
commit61f8ea7f1d304e3bc35d852e9a401c2cc45d18ef (patch)
tree704fdda03df87a74749096c101e9a90e86364ce0 /IkiWiki
parent301733ba13f8fdaf53df0a6058f92d305507a97f (diff)
downloadikiwiki-61f8ea7f1d304e3bc35d852e9a401c2cc45d18ef.tar
ikiwiki-61f8ea7f1d304e3bc35d852e9a401c2cc45d18ef.tar.gz
avoid uninitialized value
This can happen when a new field, such as the new lasttry, is added.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 9b531b612..97dd036f6 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -343,7 +343,8 @@ sub savestate () {
push @line, "tag=$_" foreach @{$data->{tags}};
}
else {
- push @line, "$field=".$data->{$field};
+ push @line, "$field=".$data->{$field}
+ if defined $data->{$field};
}
}
print OUT join(" ", @line)."\n" || error("write $newfile: $!", $cleanup);