Bugzilla bug #83930: fixed a typo in PR_LockFile. NSPRPUB_RELEASE_4_1_BRANCH
authorwtc%netscape.com
Tue, 19 Jun 2001 23:19:12 +0000
branchNSPRPUB_RELEASE_4_1_BRANCH
changeset 1952 11aae3863affd3ec0e2767605757089274aea66c
parent 1951 f93761bdef336e8633f02d21b095718f37365e43
child 1953 b985a75456f9148c387b284f10f3a12d5d87dbaf
push idunknown
push userunknown
push dateunknown
bugs83930
Bugzilla bug #83930: fixed a typo in PR_LockFile. Tag: NSPRPUB_RELEASE_4_1_BRANCH
pr/src/io/prfile.c
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -631,17 +631,17 @@ PR_IMPLEMENT(PRStatus) PR_LockFile(PRFil
         fd->secret->md.io_model_committed = PR_TRUE;
     }
 #endif
 
     PR_Lock(_pr_flock_lock);
     while (fd->secret->lockCount == -1)
         PR_WaitCondVar(_pr_flock_cv, PR_INTERVAL_NO_TIMEOUT);
     if (fd->secret->lockCount == 0) {
-        fd->secret->lockCount == -1;
+        fd->secret->lockCount = -1;
         PR_Unlock(_pr_flock_lock);
         status = _PR_MD_LOCKFILE(fd->secret->md.osfd);
         PR_Lock(_pr_flock_lock);
         fd->secret->lockCount = (status == PR_SUCCESS) ? 1 : 0;
         PR_NotifyAllCondVar(_pr_flock_cv);
     } else {
         fd->secret->lockCount++;
     }