fix AIX & OS/2 bustage (second attempt)

This commit is contained in:
darin%netscape.com 2001-09-15 01:45:27 +00:00
parent 65f0831c19
commit 2227a79d30

View File

@ -411,7 +411,8 @@ nsResProtocolHandler::ResolveURI(nsIURI *uri, char **result)
substitutions->GetElementAt(0, getter_AddRefs(substURI));
if (!substURI) return NS_ERROR_NOT_AVAILABLE;
rv = substURI->Resolve(path[0] == '/' ? path+1 : path.get(), result);
const char *p = path.get(); // be nice to the AIX and OS/2 compiler
rv = substURI->Resolve(p[0] == '/' ? p+1 : p, result);
#if 0
nsXPIDLCString spec;
uri->GetSpec(getter_Copies(spec));