ITS#6862 MozNSS - workaround PR_SetEnv bug

This commit is contained in:
Rich Megginson 2011-06-21 15:58:49 -07:00 committed by Howard Chu
parent d78cf81648
commit 5e467e4899

View file

@ -2891,7 +2891,9 @@ tlsm_init( void )
* context in the child.
*/
if ( !nofork ) {
PR_SetEnv( "NSS_STRICT_NOFORK=DISABLED" );
/* will leak one time */
char *noforkenvvar = PL_strdup( "NSS_STRICT_NOFORK=DISABLED" );
PR_SetEnv( noforkenvvar );
}
return 0;