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) {
This commit is contained in:
timeless%mac.com 2002-05-15 22:20:44 +00:00
Родитель e7988e8b2e
Коммит c277979aa4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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