Bugzilla Bug 330364: fixed a NULL pointer dereference in

PR_LoadStaticLibrary by moving the PR_LOG statement to the same location
as in pr_LoadLibraryByPathname. The bug was discovered by Coverity's tool.
r=Kenneth Herron,Gavin Sharp.
This commit is contained in:
wtchang%redhat.com 2006-03-13 21:54:58 +00:00
parent 84803a0ee0
commit bd6113172a

View File

@ -1603,8 +1603,8 @@ PR_LoadStaticLibrary(const char *name, const PRStaticLinkTable *slt)
result = lm; /* success */
PR_ASSERT(lm->refCount == 1);
unlock:
PR_LOG(_pr_linker_lm, PR_LOG_MIN, ("Loaded library %s (static lib)", lm->name));
unlock:
PR_ExitMonitor(pr_linker_lock);
return result;
}