diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-04-15 10:00:51 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-04-15 10:00:51 +0000 |
commit | 64c875a8a04bbbfb8c016dfdcf21e3e1f33e4978 (patch) | |
tree | 681adf85a7468250468c70bf537124051f700d2c /usr.sbin/pkg_add | |
parent | 97af683d4fa180dfabdcde18e514c9399a0c4a1a (diff) |
use autovivification
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index b182cdde698..e030d907330 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingList.pm,v 1.53 2007/04/08 12:35:40 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.54 2007/04/15 10:00:50 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -278,7 +278,6 @@ sub add2list { my ($plist, $object) = @_; my $category = $object->category(); - $plist->{$category} = [] unless defined $plist->{$category}; push @{$plist->{$category}}, $object; } |