mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
NECKO Only!! Don't call GetBuffer on an nsString as it returns null for unicode strings. use nsCAutoString
This commit is contained in:
parent
618e0455ce
commit
4b40e8684c
@ -287,8 +287,7 @@ rdf_MakeAbsoluteURI(nsIURI* aURL, nsString& aURI)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
char *absUrlStr = nsnull;
|
||||
const char *urlSpec = aURI.GetBuffer();
|
||||
rv = service->MakeAbsolute(urlSpec, baseUri, &absUrlStr);
|
||||
rv = service->MakeAbsolute(nsCAutoString(aURI), baseUri, &absUrlStr);
|
||||
NS_RELEASE(baseUri);
|
||||
result = absUrlStr;
|
||||
delete [] absUrlStr;
|
||||
|
Loading…
Reference in New Issue
Block a user