Bugzilla bug 142345: fixed mistakes in _MD_OpenSharedMemory and

_MD_CloseSharedMemory.  Thanks to Vladimir Golitsin
<vgolitsin@mindspring.com> for the bug report and bug fix.


git-svn-id: svn://10.0.0.236/trunk@121133 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com
2002-05-09 00:34:39 +00:00
parent de913478bf
commit 8cc00ea7d3

View File

@@ -118,7 +118,7 @@ extern PRSharedMemory * _MD_OpenSharedMemory(
PR_DELETE( shm );
return( NULL );
}
if ( close(osfd == -1 )) {
if ( close(osfd) == -1 ) {
_PR_MD_MAP_CLOSE_ERROR( errno );
PR_FREEIF( shm->ipcname );
PR_DELETE( shm );
@@ -243,7 +243,7 @@ extern PRStatus _MD_DeleteSharedMemory( const char *name )
_PR_MD_MAP_OPEN_ERROR( errno );
return( PR_FAILURE );
}
if ( close(osfd == -1 )) {
if ( close(osfd) == -1 ) {
_PR_MD_MAP_CLOSE_ERROR( errno );
return( PR_FAILURE );
}