diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-19 17:57:09 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-19 17:57:09 -0500 |
commit | 61f8ea7f1d304e3bc35d852e9a401c2cc45d18ef (patch) | |
tree | 704fdda03df87a74749096c101e9a90e86364ce0 /IkiWiki | |
parent | 301733ba13f8fdaf53df0a6058f92d305507a97f (diff) | |
download | ikiwiki-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.pm | 3 |
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); |