diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-06 07:27:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-06 07:27:04 +0000 |
commit | f8c24e237ffa166068cdb7d02dd888d0e5c11b1d (patch) | |
tree | 353f177ad17fad7997804627f1d489ffc516172d /usr.sbin/pkg_add/OpenBSD | |
parent | 6e7b059297af41c4efff87d65bc27fb6a698b592 (diff) |
oops, make sure we have wpa before using it.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm index b9c0640360e..f50f0f82553 100644 --- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm +++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Term.pm,v 1.6 2010/06/05 12:27:13 espie Exp $ +# $OpenBSD: Term.pm,v 1.7 2010/06/06 07:27:03 espie Exp $ # # Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org> # @@ -162,7 +162,7 @@ sub _show $prefix += $self->{stars}; } } - if (substr($self->{lastdisplay}, 0, $prefix) eq + if (defined $self->{hpa} && substr($self->{lastdisplay}, 0, $prefix) eq substr($d, 0, $prefix)) { print $self->hmove($prefix), substr($d, $prefix); } else { |