fixing directory bustage (nsCRT string)
/home/timeless/mozilla/directory/xpcom/base/src/nsLDAPChannel.cpp: In method `nsresult nsLDAPChannel::OnLDAPBind(nsILDAPMessage *)':
/home/timeless/mozilla/directory/xpcom/base/src/nsLDAPChannel.cpp:796: syntax error before `::'
/home/timeless/mozilla/directory/xpcom/base/src/nsLDAPChannel.cpp:798: confused by earlier errors, bailing out
gmake[4]: *** [nsLDAPChannel.o] Error 1
gmake[4]: Leaving directory `/home/timeless/mozilla/obj-xlib-i386-unknown-freebsd4.4/directory/xpcom/base/src'
if (nsCRT::strlen(baseDn) == 0) {
git-svn-id: svn://10.0.0.236/trunk@121567 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e9390a105e
commit
2976361bba
@ -793,7 +793,7 @@ nsLDAPChannel::OnLDAPBind(nsILDAPMessage *aMessage)
|
||||
//
|
||||
rv = url->GetDn(getter_Copies(baseDn));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (nsCRT::strlen(baseDn) == 0) {
|
||||
if (baseDn.IsEmpty()) {
|
||||
return NS_ERROR_MALFORMED_URI;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user