Bugzilla Bug 312100: fixed an uninitialized variable bug. NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorwtchang%redhat.com
Tue, 11 Oct 2005 21:46:54 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3471 04544f09b911ca0517e9005b966679f33bde4beb
parent 3469 bb0ea4d36a1b21d6939b839dc7ca7a1a63a7d637
child 3474 252f51964970b35d92f8200adbb288376c2ebab3
push idunknown
push userunknown
push dateunknown
bugs312100
Bugzilla Bug 312100: fixed an uninitialized variable bug. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
pr/tests/testfile.c
--- a/pr/tests/testfile.c
+++ b/pr/tests/testfile.c
@@ -430,17 +430,17 @@ cleanup:
 }
 
 
 static PRInt32 PR_CALLBACK FileTest(void)
 {
 PRDir *fd_dir;
 int i, offset, len, rv = 0;
 PRThread *t;
-PRThreadScope scope;
+PRThreadScope scope = PR_GLOBAL_THREAD;
 File_Rdwr_Param *fparamp;
 
 	/*
 	 * Create Test dir
 	 */
 	if ((PR_MkDir(TEST_DIR, 0777)) < 0) {
 		printf("testfile failed to create dir %s\n",TEST_DIR);
 		return -1;