Bug 971811 - Don't prepend an empty existing DYLD_INSERT_LIBRARIES path when launching the plugin. r=smichaud

--HG--
extra : rebase_source : 29048fe746e97b693ef4d1b3f87a531eab9dc0a4
extra : histedit_source : ecbe309757878f56b5b23d0fc5533e1405d5604a
This commit is contained in:
Markus Stange 2015-06-10 12:54:52 -04:00
parent 5113a01350
commit 48b3c7e7c8

View File

@ -636,7 +636,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
// been set up by whatever may have launched the browser.
const char* prevInterpose = PR_GetEnv("DYLD_INSERT_LIBRARIES");
nsCString interpose;
if (prevInterpose) {
if (prevInterpose && strlen(prevInterpose) > 0) {
interpose.Assign(prevInterpose);
interpose.Append(':');
}