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