summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-23 09:27:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-23 09:27:28 +0000
commitea7bbd52815b4ea7f6ff0aae725f75a65bd2faae (patch)
treef3f98ac67479c3b253259d8074d4097a73e75030 /usr.sbin
parent2ae7b124aed1195b006f8b232e8a719d6fc79908 (diff)
use autovivify
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/SharedLibs.pm4
1 files changed, 1 insertions, 3 deletions
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 <espie@openbsd.org>
#
@@ -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]);
}
}