mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -92,14 +92,14 @@ namespace OpenSim.Server.Base
|
||||
else
|
||||
{
|
||||
string cert_path = networkConfig.GetString("cert_path", string.Empty);
|
||||
if (cert_path == string.Empty)
|
||||
if (cert_path.Length == 0)
|
||||
{
|
||||
System.Console.WriteLine("ERROR: Path to X509 certificate is missing, server can't start.");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
string cert_pass = networkConfig.GetString("cert_pass", string.Empty);
|
||||
if (cert_pass == string.Empty)
|
||||
if (cert_pass.Length == 0)
|
||||
{
|
||||
System.Console.WriteLine("ERROR: Password for X509 certificate is missing, server can't start.");
|
||||
Environment.Exit(1);
|
||||
@@ -120,13 +120,13 @@ namespace OpenSim.Server.Base
|
||||
if (!ssl_external)
|
||||
{
|
||||
string cert_path = networkConfig.GetString("cert_path", string.Empty);
|
||||
if ( cert_path == string.Empty )
|
||||
if ( cert_path.Length == 0 )
|
||||
{
|
||||
System.Console.WriteLine("Path to X509 certificate is missing, server can't start.");
|
||||
Thread.CurrentThread.Abort();
|
||||
}
|
||||
string cert_pass = networkConfig.GetString("cert_pass", string.Empty);
|
||||
if ( cert_pass == string.Empty )
|
||||
if ( cert_pass.Length == 0 )
|
||||
{
|
||||
System.Console.WriteLine("Password for X509 certificate is missing, server can't start.");
|
||||
Thread.CurrentThread.Abort();
|
||||
|
||||
Reference in New Issue
Block a user