From 8cc00ea7d3f0420b2878fdb92f60e790cfe8a413 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Thu, 9 May 2002 00:34:39 +0000 Subject: [PATCH] Bugzilla bug 142345: fixed mistakes in _MD_OpenSharedMemory and _MD_CloseSharedMemory. Thanks to Vladimir Golitsin for the bug report and bug fix. git-svn-id: svn://10.0.0.236/trunk@121133 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/src/md/unix/uxshm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/nsprpub/pr/src/md/unix/uxshm.c b/mozilla/nsprpub/pr/src/md/unix/uxshm.c index 516ea855562..81aa74873bd 100644 --- a/mozilla/nsprpub/pr/src/md/unix/uxshm.c +++ b/mozilla/nsprpub/pr/src/md/unix/uxshm.c @@ -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 ); }