diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-10-23 23:18:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-10-23 23:18:56 +0000 |
commit | 13a143f637b388ccdff8f793d0c9047667205858 (patch) | |
tree | 5b3bd160b276748c3b89cb8563667b37be52ecb1 /usr.sbin | |
parent | 4a47c228ba85cb762cf81724ce54d32a5aab950a (diff) |
Allows close() on already closed locator.
Fix second problem seen by krw@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm index 68ce601dfa1..0444bb6453b 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm @@ -1,4 +1,4 @@ -# $OpenBSD: PackageLocator.pm,v 1.2 2003/10/19 18:41:56 espie Exp $ +# $OpenBSD: PackageLocator.pm,v 1.3 2003/10/23 23:18:55 espie Exp $ # # Copyright (c) 2003 Marc Espie. # @@ -228,7 +228,7 @@ sub info sub close { my $self = shift; - close($self->{fh}); + close($self->{fh}) if defined $self->{fh}; $self->{fh} = undef; $self->{archive} = undef; } |