From ea7bbd52815b4ea7f6ff0aae725f75a65bd2faae Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 23 May 2007 09:27:28 +0000 Subject: use autovivify --- usr.sbin/pkg_add/OpenBSD/SharedLibs.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm index e615c9abf2b..7c3871843dc 100644 --- a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm +++ b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: SharedLibs.pm,v 1.14 2007/05/14 23:16:41 espie Exp $ +# $OpenBSD: SharedLibs.pm,v 1.15 2007/05/23 09:27:27 espie Exp $ # # Copyright (c) 2003-2005 Marc Espie # @@ -89,8 +89,6 @@ sub register_lib my ($name, $pkgname) = @_; if ($name =~ m/^(.*\/lib.*?\.so\.\d+)\.(\d+)$/) { my ($stem, $minor) = ($1, $2); - $registered_libs->{$stem} = [] - unless defined $registered_libs->{$stem}; push(@{$registered_libs->{$stem}}, [$minor, $pkgname]); } } -- cgit v1.2.3