if (strcmp(wr->url, uri) == 0)
if (strcmp(wr->url, aURI) == 0)
nsHistoryDataSource::SetPageTitle (const char* uri, PRUnichar* title){	for (PRInt32 i = mPendingWrites.Count() - 1; i >= 0; --i)	{		HE wr = (HE) mPendingWrites.ElementAt(i);		if (strcmp(wr->url, uri) == 0)		{			char timeBuffer[256];			PRExplodedTime etime;			PR_ExplodeTime(wr->date, PR_LocalTimeParameters, &etime);			PR_FormatTimeUSEnglish(timeBuffer, 256, "%a %b %d %H:%M:%S %Y", &etime);			char *buffer = PR_smprintf("%s\t%s\t%s\t%s\n", wr->url, title, wr->referer, timeBuffer);			if (buffer)			{				PRFileDesc *fd = PR_Open(mCurrentFilePath, PR_APPEND, 0744);				if (fd)				{					PR_Write(fd, buffer, strlen(buffer));					PR_Close(fd);				}				PR_smprintf_free(buffer);			}			mPendingWrites.RemoveElement(wr);			AddPageToGraph(wr->url,  (char*) title, wr->referer,  PR_Now()) ;			PR_Free(wr);			return(NS_OK);		}    	}	return(NS_OK);}