char *tmpPtr = PL_strdup(url);
char *tmpPtr = nsCRT::strdup(url);
mimeSetNewURL(nsMIMESession *stream, char *url){  if ( (!stream) || (!url) || (!*url) )    return NS_ERROR_FAILURE;  mime_stream_data  *msd = (mime_stream_data *)stream->data_object;  if (!msd)    return NS_ERROR_FAILURE;  char *tmpPtr = PL_strdup(url);  if (!tmpPtr)    return NS_ERROR_FAILURE;  PR_FREEIF(msd->url_name);  msd->url_name = PL_strdup(tmpPtr);  return NS_OK;}