lowestCookieNum = localCookieNum;
*cookieNum = localCookieNum;
NextCookieAfter(cookie_CookieStruct * cookie, int * cookieNum) {  cookie_CookieStruct *cookie_ptr;  cookie_CookieStruct *lowestCookie = NULL;  int localCookieNum = 0;  int lowestCookieNum;  if (cookie_cookieList == nsnull)     return NULL;  PRInt32 count = cookie_cookieList->Count();  for (PRInt32 i = 0; i < count; ++i) {    cookie_ptr = NS_STATIC_CAST(cookie_CookieStruct*, cookie_cookieList->ElementAt(i));    if (cookie_ptr) {      if (!cookie || (CookieCompare(cookie_ptr, cookie) > 0)) {        if (!lowestCookie || (CookieCompare(cookie_ptr, lowestCookie) < 0)) {          lowestCookie = cookie_ptr;          lowestCookieNum = localCookieNum;        }      }      localCookieNum++;    }  }  *cookieNum = lowestCookieNum;  return lowestCookie;}