From 56f60edc75aadf5dc706d48b6a788a4fb53779bf Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 8 May 2007 05:03:14 +0000 Subject: [PATCH] * scripts/update-alternatives.pl: Fix warning when executed w/o any option. --- ChangeLog | 5 +++++ scripts/update-alternatives.pl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1e9a38c..2abb3ea2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-08 Guillem Jover + + * scripts/update-alternatives.pl: Fix warning when executed w/o any + option. + 2007-05-08 Guillem Jover * Makefile.am (EXTRA_DIST): Rename debian/pseudo-tags to diff --git a/scripts/update-alternatives.pl b/scripts/update-alternatives.pl index c8378fd9..23c31840 100755 --- a/scripts/update-alternatives.pl +++ b/scripts/update-alternatives.pl @@ -281,7 +281,8 @@ while (@ARGV) { } } -defined($aslavelink{$name}) && &badusage(sprintf(_g("name %s is both primary and slave"), $name)); +defined($name) && defined($aslavelink{$name}) && + badusage(sprintf(_g("name %s is both primary and slave"), $name)); defined($alink) && $aslavelinkcount{$alink} && badusage(sprintf(_g("link %s is both primary and slave"), $alink)); -- 2.39.5