Check for empty string, not null
This commit is contained in:
parent
616a8e9671
commit
4c9baddc2c
|
@ -282,7 +282,7 @@ namespace SparkleLib {
|
||||||
string host_key = process.StandardOutput.ReadToEnd ().Trim ();
|
string host_key = process.StandardOutput.ReadToEnd ().Trim ();
|
||||||
process.WaitForExit ();
|
process.WaitForExit ();
|
||||||
|
|
||||||
if (process.ExitCode == 0 && host_key != null)
|
if (process.ExitCode == 0 && host_key != "")
|
||||||
return host_key;
|
return host_key;
|
||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue