summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 7d40db5371..cf25fa149a 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -752,7 +752,8 @@ sub setup_env($)
my $option = $name;
$envname =~ s/:.*//;
- $option =~ s/^[^:]*://;
+ $option =~ s/^[^:]*//;
+ $option =~ s/^://;
$option = "client" if $option eq "";