nsresult result = NS_ERROR_UNEXPECTED; if (mSelect) { if (mDirty) { GetOptions(); } result = mSelect->SetLength(aLength);
if (!mOptions) { Init();
nsHTMLOptionCollection::SetLength(PRUint32 aLength){  nsresult result = NS_ERROR_UNEXPECTED;  if (mSelect) {    if (mDirty) {      GetOptions();    }      result = mSelect->SetLength(aLength);  }  return result;  }