summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>2000-02-17 22:20:12 +0000
committersrinivas%netscape.com <devnull@localhost>2000-02-17 22:20:12 +0000
commit95a17d4c06d70f3f68d1607688464d785aa5328a (patch)
treef53a39c0391c18905c343d420dc36e0ed6ffc707
parenta43baa7eae343c289e9265af4a32ba69f03fb803 (diff)
downloadnspr-hg-95a17d4c06d70f3f68d1607688464d785aa5328a.tar.gz
NSPR should be auto-initialized. Bugzilla #28236.
-rw-r--r--pr/src/linking/prlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c
index e80ac10c..e4d093f1 100644
--- a/pr/src/linking/prlink.c
+++ b/pr/src/linking/prlink.c
@@ -260,6 +260,7 @@ PR_IMPLEMENT(PRStatus) PR_SetLibraryPath(const char *path)
{
PRStatus rv = PR_SUCCESS;
+ if (!_pr_initialized) _PR_ImplicitInitialization();
PR_EnterMonitor(pr_linker_lock);
PR_FREEIF(_pr_currentLibPath);
if (path) {
@@ -284,6 +285,7 @@ PR_GetLibraryPath()
char *ev;
char *copy = NULL; /* a copy of _pr_currentLibPath */
+ if (!_pr_initialized) _PR_ImplicitInitialization();
PR_EnterMonitor(pr_linker_lock);
if (_pr_currentLibPath != NULL) {
goto exit;
@@ -797,6 +799,7 @@ PR_FindLibrary(const char *name)
{
PRLibrary* result;
+ if (!_pr_initialized) _PR_ImplicitInitialization();
PR_EnterMonitor(pr_linker_lock);
result = pr_UnlockedFindLibrary(name);
PR_ExitMonitor(pr_linker_lock);
@@ -1143,6 +1146,7 @@ PR_FindSymbolAndLibrary(const char *raw_name, PRLibrary* *lib)
#endif
PRLibrary* lm;
+ if (!_pr_initialized) _PR_ImplicitInitialization();
/*
** Mangle the raw symbol name in any way that is platform specific.
*/