mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bugzilla bug #50386: fixed PR_Sleep so that it won't return uninitialized
variable. Thanks to Fred Batty <fredb@iplanet.com> for reporting the bug.
This commit is contained in:
parent
d75dfb524a
commit
c3a38486a6
@ -749,14 +749,13 @@ PR_IMPLEMENT(PRStatus) PR_Yield()
|
||||
|
||||
PR_IMPLEMENT(PRStatus) PR_Sleep(PRIntervalTime ticks)
|
||||
{
|
||||
PRStatus rv;
|
||||
PRStatus rv = PR_SUCCESS;
|
||||
|
||||
if (!_pr_initialized) _PR_ImplicitInitialization();
|
||||
|
||||
if (PR_INTERVAL_NO_WAIT == ticks)
|
||||
{
|
||||
_PT_PTHREAD_YIELD();
|
||||
rv = PR_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user