mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
temporary fix to get unix building again... Get rid of the constness before calling PR_Free(...)
This commit is contained in:
parent
42797648cf
commit
6943ce1ed2
@ -159,7 +159,7 @@ nsNetlibService::nsNetlibService()
|
||||
XP_AppLanguage,
|
||||
XP_AppPlatform);
|
||||
if (XP_AppVersion)
|
||||
PR_Free(XP_AppVersion);
|
||||
PR_Free((char *)XP_AppVersion);
|
||||
XP_AppVersion = PL_strdup(buf);
|
||||
}
|
||||
|
||||
@ -661,7 +661,7 @@ nsNetlibService::SetCustomUserAgent(nsString aCustom)
|
||||
newAppVersion.Insert(aCustom, inIdx + 1);
|
||||
}
|
||||
|
||||
PR_Free(XP_AppVersion);
|
||||
PR_Free((char *)XP_AppVersion);
|
||||
XP_AppVersion = newAppVersion.ToNewCString();
|
||||
return NS_OK;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user