check pointer arg before dereferencing. a=r=(not built)

This commit is contained in:
dmose%mozilla.org 2000-08-23 21:40:00 +00:00
parent 7f50eca4d0
commit 546de631d0

View File

@ -61,6 +61,8 @@ NS_IMETHODIMP
nsLDAPOperation::Init(nsILDAPConnection *aConnection,
nsILDAPMessageListener *aMessageListener)
{
NS_ENSURE_ARG_POINTER(aConnection);
// so we know that the operation is not yet running (and therefore don't
// try and call ldap_abandon_ext() on it) or remove it from the queue.
//