Author: czeidler Date: 2011-03-04 22:31:11 +0100 (Fri, 04 Mar 2011) New Revision: 40810 Changeset: http://dev.haiku-os.org/changeset/40810 Modified: haiku/trunk/src/preferences/mail/DNSQuery.cpp Log: One more sanity check. Modified: haiku/trunk/src/preferences/mail/DNSQuery.cpp =================================================================== --- haiku/trunk/src/preferences/mail/DNSQuery.cpp 2011-03-04 18:42:48 UTC (rev 40809) +++ haiku/trunk/src/preferences/mail/DNSQuery.cpp 2011-03-04 21:31:11 UTC (rev 40810) @@ -245,6 +245,9 @@ BString DNSTools::ConvertFromDNSName(const BString& string) { + if (string.Length() == 0) + return string; + BString outString = string; int32 dot = string[0]; int32 nextDot = dot;