Backing out change.

git-svn-id: svn://10.0.0.236/trunk@41234 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-07-27 03:45:45 +00:00
parent ad46195df5
commit 72db77fcb7

View File

@ -1010,8 +1010,8 @@ IL_StreamFirstWrite(il_container *ic, const unsigned char *str, int32 len)
FREE_IF_NOT_NULL(ic->fetch_url);
if (ic->url){
ic->fetch_url = ic->url->GetAddress();
if((ic->url)&& ic->url->GetAddress()){
ic->fetch_url = PL_strdup(ic->url->GetAddress());
}
else{
if(ic->url_address) /* check needed because of mkicons.c */
@ -1041,7 +1041,6 @@ IL_StreamFirstWrite(il_container *ic, const unsigned char *str, int32 len)
case IL_XBM : PL_strcpy(imgtype, "xbm"); break;
case IL_JPEG : PL_strcpy(imgtype, "jpeg"); break;
case IL_PNG : PL_strcpy(imgtype, "png"); break;
case IL_ART : PL_strcpy(imgtype, "art"); break;
default : PL_strcpy(imgtype, "");
}
@ -1608,9 +1607,8 @@ IL_StreamCreated(il_container *ic,
ic->type = (int)type;
ic->content_length = url->GetContentLength();
char* addr = url->GetAddress();
ILTRACE(4,("il: new stream, type %d, %s", ic->type, addr));
nsCRT::free(addr);
ILTRACE(4,("il: new stream, type %d, %s", ic->type,
url->GetAddress()));
ic->state = IC_STREAM;
#ifndef M12N /* XXXM12N Fix me. */