summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/px_sem_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility/rtos_compatibility_layers/posix/px_sem_open.c')
-rw-r--r--utility/rtos_compatibility_layers/posix/px_sem_open.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/utility/rtos_compatibility_layers/posix/px_sem_open.c b/utility/rtos_compatibility_layers/posix/px_sem_open.c
index 72b92027..ca97c4e8 100644
--- a/utility/rtos_compatibility_layers/posix/px_sem_open.c
+++ b/utility/rtos_compatibility_layers/posix/px_sem_open.c
@@ -32,7 +32,7 @@
/* FUNCTION RELEASE */
/* */
/* sem_open PORTABLE C */
-/* 6.1.7 */
+/* 6.2.0 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
@@ -69,7 +69,9 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 10-31-2022 Scott Larson Update comparison with NULL, */
+/* resulting in version 6.2.0 */
/* */
/**************************************************************************/
sem_t * sem_open(const CHAR * name, ULONG oflag, ...)
@@ -110,7 +112,7 @@ mode_t mode;
}
/* Check if semaphore exists. */
- if(semid= posix_find_sem( name))
+ if((semid = posix_find_sem(name)) != NULL)
{
if(semid->unlink_flag ==TX_TRUE )
{