From a809c0b3ed62aec39b6e4fc8400db9f865ccc56a Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 14 Feb 2008 20:52:40 +0000 Subject: Closing ticket #169: * fixed undefined values in slxsettings when no action has been given git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1544 95ad53e4-c205-0410-b2fa-d234c58c8868 --- bin/slxsettings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/slxsettings b/bin/slxsettings index 07b268e9..643b8026 100755 --- a/bin/slxsettings +++ b/bin/slxsettings @@ -72,8 +72,8 @@ my %configPattern = ( # the remaining cmdline arguments are set or reset actions, each followed # by a single argument: while (scalar @ARGV) { - my $action = shift; - my $arg = shift; + my $action = shift || ''; + my $arg = shift || ''; if ($action eq 'set') { if ($arg !~ m[^([-\w]+)=(.+)$]) { die _tr( -- cgit v1.2.3-55-g7522