Fix a crasher

This commit is contained in:
Ludovic Marcotte 2015-05-22 13:47:48 -04:00
parent d6ab7582e5
commit 2ae5f342da

View file

@ -496,6 +496,8 @@ static Class NSNullK;
dd = [SOGoSystemDefaults sharedSystemDefaults]; dd = [SOGoSystemDefaults sharedSystemDefaults];
username = _login;
if (*_domain) if (*_domain)
{ {
if ([_login rangeOfString: @"@"].location == NSNotFound) if ([_login rangeOfString: @"@"].location == NSNotFound)
@ -505,8 +507,6 @@ static Class NSNullK;
{ {
NSRange r; NSRange r;
username = _login;
// We try to extract the domain in use in order to avoid pounding all the authentication // We try to extract the domain in use in order to avoid pounding all the authentication
// sources if SOGoLoginDomains isn't specified. This is also true if the user is // sources if SOGoLoginDomains isn't specified. This is also true if the user is
// using DAV or EAS. // using DAV or EAS.