Check for empty string, not null

This commit is contained in:
= 2012-09-05 14:49:34 +02:00
parent 616a8e9671
commit 4c9baddc2c

View file

@ -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;