if ((cur_target == NULL) || (!cur_target->equals(target))) { continue; }
if ((cur_target == NULL) || (!cur_target->equals(target))) continue;
RDF_RemovePrincipalsPrivilege(nsPrincipal *prin, nsTarget *target){  PRBool found = PR_FALSE;#ifdef ENABLE_RDF  nsCaps_lock();  RDFJSec_InitPrivilegeDB();  RDF_Cursor prin_cursor = RDFJSec_ListAllPrincipals();  if (prin_cursor == NULL) {    nsCaps_unlock();    return PR_FALSE;  }    JSec_Principal jsec_prin;  nsPrincipal *cur_prin = NULL;  JSec_PrincipalUse jsec_pr_use = NULL;  while ((jsec_prin = RDFJSec_NextPrincipal(prin_cursor)) != NULL) {    /* Find the principal */    if ((cur_prin = RDF_getPrincipal(jsec_prin)) == NULL) {      continue;    }    if (!cur_prin->equals(prin)) {      continue;    }    /* Found the principal. Find the target for this principal */     RDF_Cursor prin_use_cursor = RDFJSec_ListAllPrincipalUses(jsec_prin);    while ((jsec_pr_use = RDFJSec_NextPrincipalUse(prin_use_cursor)) != NULL) {      JSec_Target jsec_target = RDFJSec_TargetOfPrincipalUse(jsec_pr_use);      if (jsec_target == NULL) {        continue;      }      nsTarget *cur_target = RDF_getTarget(jsec_target);      if ((cur_target == NULL) || (!cur_target->equals(target))) {        continue;      }      found = PR_TRUE;      break;    }    RDFJSec_ReleaseCursor(prin_use_cursor);    if (found) {      break;    }  }  RDFJSec_ReleaseCursor(prin_cursor);  if (found) {    RDFJSec_DeletePrincipalUse(jsec_prin, jsec_pr_use);  }  nsCaps_unlock();#endif /* ENABLE_RDF */  return found;}